mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Ruby: Fix ConstantAccessCfgNode.getValueText
The superclass definition uses SSA, which doesn't track constants.
This commit is contained in:
committed by
Harry Maclean
parent
ea538a1ee8
commit
b4b91e84a3
@@ -390,6 +390,8 @@ module ExprNodes {
|
||||
|
||||
/** Gets the scope expression. */
|
||||
final ExprCfgNode getScopeExpr() { e.hasCfgChild(e.getScopeExpr(), this, result) }
|
||||
|
||||
override string getValueText() { result = this.getExpr().getValueText() }
|
||||
}
|
||||
|
||||
private class StmtSequenceChildMapping extends ExprChildMapping, StmtSequence {
|
||||
|
||||
Reference in New Issue
Block a user