Skip to content

Commit 8d264e7

Browse files
committed
Ruby: add ConstanReadAcess#getAQualifiedName() predicate
1 parent 714e95e commit 8d264e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ruby/ql/lib/codeql/ruby/ast/Constant.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ class ConstantReadAccess extends ConstantAccess {
294294
Expr getValue() { result = getConstantReadAccessValue(this) }
295295

296296
final override string getAPrimaryQlClass() { result = "ConstantReadAccess" }
297+
298+
/**
299+
* Gets a fully qualified name for this constant.
300+
*/
301+
string getAQualifiedName() { TResolved(result) = resolveConstantReadAccess(this) }
297302
}
298303

299304
/**

0 commit comments

Comments
 (0)