Ruby: Fix ConstantAccessCfgNode.getValueText

The superclass definition uses SSA, which doesn't track constants.
This commit is contained in:
Harry Maclean
2021-12-07 18:24:00 +13:00
committed by Harry Maclean
parent ea538a1ee8
commit b4b91e84a3

View File

@@ -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 {