Skip to content

Commit e3e7412

Browse files
committed
ParameterNode non-extending subtype of ParameterNodeImpl
1 parent aa656f7 commit e3e7412

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPublic.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ class ExprNode extends Node, TExprNode_ {
9898
* The value of a parameter at function entry, viewed as a node in a data
9999
* flow graph.
100100
*/
101-
class ParameterNode extends Node {
102-
ParameterNode() { this instanceof ParameterNodeImpl }
103-
101+
class ParameterNode extends Node instanceof ParameterNodeImpl {
104102
/** Gets the parameter corresponding to this node, if any. */
105103
DotNet::Parameter getParameter() {
106104
exists(DataFlowCallable c, int i | this.isParameterOf(c, i) and result = c.getParameter(i))
@@ -111,7 +109,7 @@ class ParameterNode extends Node {
111109
* (zero-based) position.
112110
*/
113111
predicate isParameterOf(DataFlowCallable c, int i) {
114-
this.(ParameterNodeImpl).isParameterOf(c, i)
112+
super.isParameterOf(c, i)
115113
}
116114
}
117115

0 commit comments

Comments
 (0)