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 {
208
208
*/
209
209
predicate hasGlobalScope ( ) { none ( ) }
210
210
211
+ /**
212
+ * Gets a fully qualified name for this constant.
213
+ */
214
+ string getAQualifiedName ( ) { none ( ) }
215
+
211
216
override string toString ( ) { result = this .getName ( ) }
212
217
213
218
override AstNode getAChild ( string pred ) {
@@ -295,10 +300,7 @@ class ConstantReadAccess extends ConstantAccess {
295
300
296
301
final override string getAPrimaryQlClass ( ) { result = "ConstantReadAccess" }
297
302
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 ) }
302
304
}
303
305
304
306
/**
@@ -359,7 +361,7 @@ class ConstantWriteAccess extends ConstantAccess {
359
361
* constants up the namespace chain, the fully qualified name of a nested
360
362
* constant can be ambiguous from just statically looking at the AST.
361
363
*/
362
- string getAQualifiedName ( ) { result = resolveConstantWriteAccess ( this ) }
364
+ override string getAQualifiedName ( ) { result = resolveConstantWriteAccess ( this ) }
363
365
364
366
/**
365
367
* Gets a qualified name for this constant. Deprecated in favor of
You can’t perform that action at this time.
0 commit comments