Skip to content

Commit 2001ce3

Browse files
committed
Java/C#: Adjust references.
1 parent 5927bb2 commit 2001ce3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ string captureThroughFlow(DataFlowTargetApi api) {
178178
string output
179179
|
180180
ThroughFlow::flow(p, returnNodeExt) and
181-
returnNodeExt.getEnclosingCallable() = api and
181+
returnNodeExt.(DataFlow::Node).getEnclosingCallable() = api and
182182
input = parameterNodeAsInput(p) and
183183
output = returnNodeAsOutput(returnNodeExt) and
184184
input != output and

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class InstanceParameterNode = DataFlowPrivate::InstanceParameterNode;
121121

122122
pragma[nomagic]
123123
private CS::Parameter getParameter(DataFlowImplCommon::ReturnNodeExt node, ParameterPosition pos) {
124-
result = node.getEnclosingCallable().getParameter(pos.getPosition())
124+
result = node.(DataFlow::Node).getEnclosingCallable().getParameter(pos.getPosition())
125125
}
126126

127127
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ string captureThroughFlow(DataFlowTargetApi api) {
178178
string output
179179
|
180180
ThroughFlow::flow(p, returnNodeExt) and
181-
returnNodeExt.getEnclosingCallable() = api and
181+
returnNodeExt.(DataFlow::Node).getEnclosingCallable() = api and
182182
input = parameterNodeAsInput(p) and
183183
output = returnNodeAsOutput(returnNodeExt) and
184184
input != output and

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ string returnNodeAsOutput(DataFlowImplCommon::ReturnNodeExt node) {
184184
exists(int pos |
185185
pos = node.getKind().(DataFlowImplCommon::ParamUpdateReturnKind).getPosition()
186186
|
187-
result = parameterAccess(node.getEnclosingCallable().getParameter(pos))
187+
result = parameterAccess(node.(DataFlow::Node).getEnclosingCallable().getParameter(pos))
188188
or
189189
result = qualifierString() and pos = -1
190190
)

0 commit comments

Comments
 (0)