Skip to content

Commit bb858d3

Browse files
committed
JS: Tweak ExprNode
1 parent c58947d commit bb858d3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,7 @@ module DataFlow {
12631263
/**
12641264
* Gets the data flow node corresponding to `e`.
12651265
*/
1266+
pragma[inline]
12661267
ExprNode exprNode(Expr e) { result = valueNode(e) }
12671268

12681269
/** Gets the data flow node corresponding to `ssa`. */

javascript/ql/src/semmle/javascript/dataflow/Nodes.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ private import internal.CallGraphs
1919
*/
2020
class ExprNode extends DataFlow::ValueNode {
2121
override Expr astNode;
22+
23+
pragma[nomagic]
24+
ExprNode() { any() }
2225
}
2326

2427
/**

0 commit comments

Comments
 (0)