We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35b9306 commit 7f6c84dCopy full SHA for 7f6c84d
1 file changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPublic.qll
@@ -86,6 +86,12 @@ class ExprNode extends Node, TExprNode {
86
}
87
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
+
95
/**
96
* The value of a parameter at function entry, viewed as a node in a data
97
* flow graph.
@@ -95,7 +101,7 @@ class ParameterNode extends Node instanceof ParameterNodeImpl {
101
Parameter getParameter() {
102
exists(DataFlowCallable c, ParameterPosition ppos |
103
super.isParameterOf(c, ppos) and
98
- result = c.asCallable().getParameter(ppos.getPosition())
104
+ isParameterOf0(c, ppos, result)
99
105
)
100
106
107
0 commit comments