mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: add DataFlow::Node.getIntValue()
This commit is contained in:
@@ -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`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user