JS: Add getALocalUse

This commit is contained in:
Asger Feldthaus
2020-11-12 12:43:37 +00:00
parent 20416ae034
commit a3421e7ab2

View File

@@ -52,6 +52,11 @@ class SourceNode extends DataFlow::Node {
*/
predicate flowsToExpr(Expr sink) { flowsTo(DataFlow::valueNode(sink)) }
/**
* Gets a node into which data may flow from this node in zero or more local steps.
*/
DataFlow::Node getALocalUse() { flowsTo(result) }
/**
* Gets a reference (read or write) of property `propName` on this node.
*/