File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
ruby/ql/lib/codeql/ruby/ast Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,11 @@ class ConstantAccess extends Expr, TConstantAccess {
208208 */
209209 predicate hasGlobalScope ( ) { none ( ) }
210210
211+ /**
212+ * Gets a fully qualified name for this constant.
213+ */
214+ string getAQualifiedName ( ) { none ( ) }
215+
211216 override string toString ( ) { result = this .getName ( ) }
212217
213218 override AstNode getAChild ( string pred ) {
@@ -295,10 +300,7 @@ class ConstantReadAccess extends ConstantAccess {
295300
296301 final override string getAPrimaryQlClass ( ) { result = "ConstantReadAccess" }
297302
298- /**
299- * Gets a fully qualified name for this constant.
300- */
301- string getAQualifiedName ( ) { TResolved ( result ) = resolveConstantReadAccess ( this ) }
303+ override string getAQualifiedName ( ) { TResolved ( result ) = resolveConstantReadAccess ( this ) }
302304}
303305
304306/**
@@ -359,7 +361,7 @@ class ConstantWriteAccess extends ConstantAccess {
359361 * constants up the namespace chain, the fully qualified name of a nested
360362 * constant can be ambiguous from just statically looking at the AST.
361363 */
362- string getAQualifiedName ( ) { result = resolveConstantWriteAccess ( this ) }
364+ override string getAQualifiedName ( ) { result = resolveConstantWriteAccess ( this ) }
363365
364366 /**
365367 * Gets a qualified name for this constant. Deprecated in favor of
You can’t perform that action at this time.
0 commit comments