JS: Tweak ExprNode

This commit is contained in:
Asger Feldthaus
2021-02-24 10:03:45 +00:00
parent c58947d3e6
commit bb858d38c4
2 changed files with 4 additions and 0 deletions

View File

@@ -1263,6 +1263,7 @@ module DataFlow {
/**
* Gets the data flow node corresponding to `e`.
*/
pragma[inline]
ExprNode exprNode(Expr e) { result = valueNode(e) }
/** Gets the data flow node corresponding to `ssa`. */

View File

@@ -19,6 +19,9 @@ private import internal.CallGraphs
*/
class ExprNode extends DataFlow::ValueNode {
override Expr astNode;
pragma[nomagic]
ExprNode() { any() }
}
/**