Skip to content

Commit d5d08da

Browse files
committed
JS: Update getEnclosingExpr
1 parent 12cc228 commit d5d08da

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,11 @@ module DataFlow {
6767
/**
6868
* Gets the expression enclosing this data flow node.
6969
* In most cases the result is the same as `asExpr()`, however this method
70-
* additionally the `InvokeExpr` corresponding to reflective calls, and the `Parameter`
71-
* for a `DataFlow::ParameterNode`.
70+
* additionally includes the `InvokeExpr` corresponding to reflective calls.
7271
*/
7372
Expr getEnclosingExpr() {
7473
result = asExpr() or
75-
this = DataFlow::reflectiveCallNode(result) or
76-
result = this.(ParameterNode).getParameter()
74+
this = DataFlow::reflectiveCallNode(result)
7775
}
7876

7977
/** Gets the AST node corresponding to this data flow node, if any. */

0 commit comments

Comments
 (0)