@@ -167,7 +167,7 @@ predicate returnStep(Node nodeFrom, Node nodeTo) {
167
167
* to `z` inside `bar`, even though this content write happens _after_ `bar` is
168
168
* called.
169
169
*/
170
- predicate basicStoreStep ( Node nodeFrom , Node nodeTo , TypeTrackerContent contents ) {
170
+ predicate basicStoreStep ( Node nodeFrom , Node nodeTo , DataFlow :: ContentSet contents ) {
171
171
postUpdateStoreStep ( nodeFrom , nodeTo , contents )
172
172
or
173
173
exists (
@@ -185,7 +185,7 @@ predicate basicStoreStep(Node nodeFrom, Node nodeTo, TypeTrackerContent contents
185
185
* Holds if a store step `nodeFrom -> nodeTo` with `contents` exists, where the destination node
186
186
* is a post-update node that should be treated as a local source node.
187
187
*/
188
- predicate postUpdateStoreStep ( Node nodeFrom , Node nodeTo , TypeTrackerContent contents ) {
188
+ predicate postUpdateStoreStep ( Node nodeFrom , Node nodeTo , DataFlow :: ContentSet contents ) {
189
189
// TODO: support SetterMethodCall inside TuplePattern
190
190
exists ( ExprNodes:: MethodCallCfgNode call |
191
191
contents
@@ -202,7 +202,7 @@ predicate postUpdateStoreStep(Node nodeFrom, Node nodeTo, TypeTrackerContent con
202
202
/**
203
203
* Holds if `nodeTo` is the result of accessing the `content` content of `nodeFrom`.
204
204
*/
205
- predicate basicLoadStep ( Node nodeFrom , Node nodeTo , TypeTrackerContent contents ) {
205
+ predicate basicLoadStep ( Node nodeFrom , Node nodeTo , DataFlow :: ContentSet contents ) {
206
206
exists ( ExprNodes:: MethodCallCfgNode call |
207
207
call .getExpr ( ) .getNumberOfArguments ( ) = 0 and
208
208
contents .isSingleton ( DataFlowPublic:: Content:: getAttributeName ( call .getExpr ( ) .getMethodName ( ) ) ) and
@@ -231,7 +231,7 @@ class Boolean extends boolean {
231
231
private import SummaryComponentStack
232
232
233
233
private predicate hasStoreSummary (
234
- SummarizedCallable callable , TypeTrackerContent contents , SummaryComponent input ,
234
+ SummarizedCallable callable , DataFlow :: ContentSet contents , SummaryComponent input ,
235
235
SummaryComponent output
236
236
) {
237
237
callable
@@ -240,7 +240,7 @@ private predicate hasStoreSummary(
240
240
}
241
241
242
242
private predicate hasLoadSummary (
243
- SummarizedCallable callable , TypeTrackerContent contents , SummaryComponent input ,
243
+ SummarizedCallable callable , DataFlow :: ContentSet contents , SummaryComponent input ,
244
244
SummaryComponent output
245
245
) {
246
246
callable
0 commit comments