Skip to content

Commit ab95a0b

Browse files
committed
Java/C#: Rename references
1 parent 978c5f7 commit ab95a0b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

csharp/ql/src/utils/modelgenerator/internal/CaptureModels.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ module ThroughFlowConfig implements DataFlow::StateConfigSig {
210210
}
211211
}
212212

213-
private module ThroughFlow = TaintTracking::MakeWithState<ThroughFlowConfig>;
213+
private module ThroughFlow = TaintTracking::GlobalWithState<ThroughFlowConfig>;
214214

215215
/**
216216
* Gets the summary model(s) of `api`, if there is flow from parameters to return value or parameter.
@@ -220,7 +220,7 @@ string captureThroughFlow(DataFlowTargetApi api) {
220220
DataFlow::ParameterNode p, DataFlowImplCommon::ReturnNodeExt returnNodeExt, string input,
221221
string output
222222
|
223-
ThroughFlow::hasFlow(p, returnNodeExt) and
223+
ThroughFlow::flow(p, returnNodeExt) and
224224
returnNodeExt.getEnclosingCallable() = api and
225225
input = parameterNodeAsInput(p) and
226226
output = returnNodeAsOutput(returnNodeExt) and
@@ -253,14 +253,14 @@ module FromSourceConfig implements DataFlow::ConfigSig {
253253
}
254254
}
255255

256-
private module FromSource = TaintTracking::Make<FromSourceConfig>;
256+
private module FromSource = TaintTracking::Global<FromSourceConfig>;
257257

258258
/**
259259
* Gets the source model(s) of `api`, if there is flow from an existing known source to the return of `api`.
260260
*/
261261
string captureSource(DataFlowTargetApi api) {
262262
exists(DataFlow::Node source, DataFlow::Node sink, string kind |
263-
FromSource::hasFlow(source, sink) and
263+
FromSource::flow(source, sink) and
264264
ExternalFlow::sourceNode(source, kind) and
265265
api = sink.getEnclosingCallable() and
266266
isRelevantSourceKind(kind) and
@@ -285,14 +285,14 @@ module PropagateToSinkConfig implements DataFlow::ConfigSig {
285285
DataFlow::FlowFeature getAFeature() { result instanceof DataFlow::FeatureHasSourceCallContext }
286286
}
287287

288-
private module PropagateToSink = TaintTracking::Make<PropagateToSinkConfig>;
288+
private module PropagateToSink = TaintTracking::Global<PropagateToSinkConfig>;
289289

290290
/**
291291
* Gets the sink model(s) of `api`, if there is flow from a parameter to an existing known sink.
292292
*/
293293
string captureSink(DataFlowTargetApi api) {
294294
exists(DataFlow::Node src, DataFlow::Node sink, string kind |
295-
PropagateToSink::hasFlow(src, sink) and
295+
PropagateToSink::flow(src, sink) and
296296
ExternalFlow::sinkNode(sink, kind) and
297297
api = src.getEnclosingCallable() and
298298
isRelevantSinkKind(kind) and

java/ql/src/utils/modelgenerator/internal/CaptureModels.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ module ThroughFlowConfig implements DataFlow::StateConfigSig {
210210
}
211211
}
212212

213-
private module ThroughFlow = TaintTracking::MakeWithState<ThroughFlowConfig>;
213+
private module ThroughFlow = TaintTracking::GlobalWithState<ThroughFlowConfig>;
214214

215215
/**
216216
* Gets the summary model(s) of `api`, if there is flow from parameters to return value or parameter.
@@ -220,7 +220,7 @@ string captureThroughFlow(DataFlowTargetApi api) {
220220
DataFlow::ParameterNode p, DataFlowImplCommon::ReturnNodeExt returnNodeExt, string input,
221221
string output
222222
|
223-
ThroughFlow::hasFlow(p, returnNodeExt) and
223+
ThroughFlow::flow(p, returnNodeExt) and
224224
returnNodeExt.getEnclosingCallable() = api and
225225
input = parameterNodeAsInput(p) and
226226
output = returnNodeAsOutput(returnNodeExt) and
@@ -253,14 +253,14 @@ module FromSourceConfig implements DataFlow::ConfigSig {
253253
}
254254
}
255255

256-
private module FromSource = TaintTracking::Make<FromSourceConfig>;
256+
private module FromSource = TaintTracking::Global<FromSourceConfig>;
257257

258258
/**
259259
* Gets the source model(s) of `api`, if there is flow from an existing known source to the return of `api`.
260260
*/
261261
string captureSource(DataFlowTargetApi api) {
262262
exists(DataFlow::Node source, DataFlow::Node sink, string kind |
263-
FromSource::hasFlow(source, sink) and
263+
FromSource::flow(source, sink) and
264264
ExternalFlow::sourceNode(source, kind) and
265265
api = sink.getEnclosingCallable() and
266266
isRelevantSourceKind(kind) and
@@ -285,14 +285,14 @@ module PropagateToSinkConfig implements DataFlow::ConfigSig {
285285
DataFlow::FlowFeature getAFeature() { result instanceof DataFlow::FeatureHasSourceCallContext }
286286
}
287287

288-
private module PropagateToSink = TaintTracking::Make<PropagateToSinkConfig>;
288+
private module PropagateToSink = TaintTracking::Global<PropagateToSinkConfig>;
289289

290290
/**
291291
* Gets the sink model(s) of `api`, if there is flow from a parameter to an existing known sink.
292292
*/
293293
string captureSink(DataFlowTargetApi api) {
294294
exists(DataFlow::Node src, DataFlow::Node sink, string kind |
295-
PropagateToSink::hasFlow(src, sink) and
295+
PropagateToSink::flow(src, sink) and
296296
ExternalFlow::sinkNode(sink, kind) and
297297
api = src.getEnclosingCallable() and
298298
isRelevantSinkKind(kind) and

0 commit comments

Comments
 (0)