JS: add DataFlow::Node.getIntValue()

This commit is contained in:
Asger F
2019-02-12 13:04:59 +00:00
parent 0fd9d157f8
commit 2fd1ee60a2
3 changed files with 22 additions and 0 deletions

View File

@@ -108,6 +108,9 @@ module DataFlow {
b = analyze().getAValue().(AbstractBoolean).getBooleanValue()
}
/** Gets the integer value of this node, if it is an integer constant. */
int getIntValue() { result = asExpr().getIntValue() }
/**
* Holds if this expression may refer to the initial value of parameter `p`.
*/