Skip to content

Commit aa656f7

Browse files
committed
ArgumentNode non-extending subtype of ArgumentNodeImpl
1 parent 4a0aac8 commit aa656f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,12 +940,10 @@ private module ParameterNodes {
940940
import ParameterNodes
941941

942942
/** A data-flow node that represents a call argument. */
943-
class ArgumentNode extends Node {
944-
ArgumentNode() { this instanceof ArgumentNodeImpl }
945-
943+
class ArgumentNode extends Node instanceof ArgumentNodeImpl {
946944
/** Holds if this argument occurs at the given position in the given call. */
947945
final predicate argumentOf(DataFlowCall call, int pos) {
948-
this.(ArgumentNodeImpl).argumentOf(call, pos)
946+
super.argumentOf(call, pos)
949947
}
950948
}
951949

0 commit comments

Comments
 (0)