Skip to content

Commit b4b91e8

Browse files
committed
Ruby: Fix ConstantAccessCfgNode.getValueText
The superclass definition uses SSA, which doesn't track constants.
1 parent ea538a1 commit b4b91e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ruby/ql/lib/codeql/ruby/controlflow/CfgNodes.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ module ExprNodes {
390390

391391
/** Gets the scope expression. */
392392
final ExprCfgNode getScopeExpr() { e.hasCfgChild(e.getScopeExpr(), this, result) }
393+
394+
override string getValueText() { result = this.getExpr().getValueText() }
393395
}
394396

395397
private class StmtSequenceChildMapping extends ExprChildMapping, StmtSequence {

0 commit comments

Comments
 (0)