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 {
8686 }
8787}
8888
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+
8995/**
9096 * The value of a parameter at function entry, viewed as a node in a data
9197 * flow graph.
@@ -95,7 +101,7 @@ class ParameterNode extends Node instanceof ParameterNodeImpl {
95101 Parameter getParameter ( ) {
96102 exists ( DataFlowCallable c , ParameterPosition ppos |
97103 super .isParameterOf ( c , ppos ) and
98- result = c . asCallable ( ) . getParameter ( ppos . getPosition ( ) )
104+ isParameterOf0 ( c , ppos , result )
99105 )
100106 }
101107}
You can’t perform that action at this time.
0 commit comments