File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
csharp/ql/src/utils/model-generator Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ string parameterNodeAsInput(DataFlow::ParameterNode p) {
86
86
result = "Argument[Qualifier]" and p instanceof InstanceParameterNode
87
87
}
88
88
89
+ pragma [ nomagic]
90
+ private Parameter getParameter ( ReturnNodeExt node , ParameterPosition pos ) {
91
+ result = node .getEnclosingCallable ( ) .getParameter ( pos .getPosition ( ) )
92
+ }
93
+
89
94
/**
90
95
* Gets the model string represention of the the return node `node`.
91
96
*/
@@ -94,7 +99,7 @@ string returnNodeAsOutput(ReturnNodeExt node) {
94
99
then result = "ReturnValue"
95
100
else
96
101
exists ( ParameterPosition pos | pos = node .getKind ( ) .( ParamUpdateReturnKind ) .getPosition ( ) |
97
- result = parameterAccess ( node . getEnclosingCallable ( ) . getParameter ( pos . getPosition ( ) ) )
102
+ result = parameterAccess ( getParameter ( node , pos ) )
98
103
or
99
104
pos .isThisParameter ( ) and
100
105
result = "Argument[Qualifier]"
You can’t perform that action at this time.
0 commit comments