File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
javascript/ql/src/Quality Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -122,20 +122,18 @@ class ErrorHandlerRegistration extends DataFlow::MethodCallNode {
122
122
}
123
123
124
124
/**
125
- * Models flow relationships between streams and related operations.
126
- * Connects destination streams to their corresponding pipe call nodes.
127
- * Connects streams to their chainable methods.
125
+ * Holds if the stream in `node1` will propagate to `node2`.
128
126
*/
129
- private predicate streamFlowStep ( DataFlow:: Node streamNode , DataFlow:: Node relatedNode ) {
127
+ private predicate streamFlowStep ( DataFlow:: Node node1 , DataFlow:: Node node2 ) {
130
128
exists ( PipeCall pipe |
131
- streamNode = pipe .getDestinationStream ( ) and
132
- relatedNode = pipe
129
+ node1 = pipe .getDestinationStream ( ) and
130
+ node2 = pipe
133
131
)
134
132
or
135
133
exists ( DataFlow:: MethodCallNode chainable |
136
134
chainable .getMethodName ( ) = getChainableStreamMethodName ( ) and
137
- streamNode = chainable .getReceiver ( ) and
138
- relatedNode = chainable
135
+ node1 = chainable .getReceiver ( ) and
136
+ node2 = chainable
139
137
)
140
138
}
141
139
You can’t perform that action at this time.
0 commit comments