Skip to content

Commit 6712cce

Browse files
michaelnebelMathiasVP
authored andcommitted
Rust: Update model generator implementation.
1 parent ee83ca9 commit 6712cce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,26 @@ module ModelGeneratorCommonInput implements
5454

5555
string qualifierString() { result = "Argument[self]" }
5656

57-
string parameterAccess(R::ParamBase p) {
57+
string parameterExactAccess(R::ParamBase p) {
5858
result =
5959
"Argument[" + any(DataFlowImpl::ParameterPosition pos | p = pos.getParameterIn(_)).toString() +
6060
"]"
6161
}
6262

63-
string parameterContentAccess(R::ParamBase p) { result = parameterAccess(p) }
63+
string parameterApproximateAccess(R::ParamBase p) { result = parameterExactAccess(p) }
6464

6565
class InstanceParameterNode extends DataFlow::ParameterNode {
6666
InstanceParameterNode() { this.asParameter() instanceof SelfParam }
6767
}
6868

6969
bindingset[c]
70-
string paramReturnNodeAsOutput(Callable c, DataFlowImpl::ParameterPosition pos) {
71-
result = paramReturnNodeAsContentOutput(c, pos)
70+
string paramReturnNodeAsApproximateOutput(Callable c, DataFlowImpl::ParameterPosition pos) {
71+
result = paramReturnNodeAsExactOutput(c, pos)
7272
}
7373

7474
bindingset[c]
75-
string paramReturnNodeAsContentOutput(Callable c, DataFlowImpl::ParameterPosition pos) {
76-
result = parameterContentAccess(c.getParamList().getParam(pos.getPosition()))
75+
string paramReturnNodeAsExactOutput(Callable c, DataFlowImpl::ParameterPosition pos) {
76+
result = parameterExactAccess(c.getParamList().getParam(pos.getPosition()))
7777
or
7878
pos.isSelf() and result = qualifierString()
7979
}

0 commit comments

Comments
 (0)