File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,12 @@ class ExprNode extends Node, TExprNode {
86
86
}
87
87
}
88
88
89
+ pragma [ nomagic]
90
+ private predicate isParameterOf0 ( DataFlowCallable c , ParameterPosition ppos , Parameter p ) {
91
+ p .getCallable ( ) = c .asCallable ( ) and
92
+ p .getPosition ( ) = ppos .getPosition ( )
93
+ }
94
+
89
95
/**
90
96
* The value of a parameter at function entry, viewed as a node in a data
91
97
* flow graph.
@@ -95,7 +101,7 @@ class ParameterNode extends Node instanceof ParameterNodeImpl {
95
101
Parameter getParameter ( ) {
96
102
exists ( DataFlowCallable c , ParameterPosition ppos |
97
103
super .isParameterOf ( c , ppos ) and
98
- result = c . asCallable ( ) . getParameter ( ppos . getPosition ( ) )
104
+ isParameterOf0 ( c , ppos , result )
99
105
)
100
106
}
101
107
}
You can’t perform that action at this time.
0 commit comments