File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
cpp/ql/src/semmle/code/cpp/ir/implementation
csharp/ql/src/semmle/code/csharp/ir/implementation Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1202,6 +1202,11 @@ class CallInstruction extends Instruction {
12021202 final Instruction getPositionalArgument ( int index ) {
12031203 result = getPositionalArgumentOperand ( index ) .getDef ( )
12041204 }
1205+
1206+ /**
1207+ * Gets the number of arguments of the call, including the `this` pointer, if any.
1208+ */
1209+ final int getNumberOfArguments ( ) { result = count ( this .getAnArgumentOperand ( ) ) }
12051210}
12061211
12071212/**
Original file line number Diff line number Diff line change @@ -1202,6 +1202,11 @@ class CallInstruction extends Instruction {
12021202 final Instruction getPositionalArgument ( int index ) {
12031203 result = getPositionalArgumentOperand ( index ) .getDef ( )
12041204 }
1205+
1206+ /**
1207+ * Gets the number of arguments of the call, including the `this` pointer, if any.
1208+ */
1209+ final int getNumberOfArguments ( ) { result = count ( this .getAnArgumentOperand ( ) ) }
12051210}
12061211
12071212/**
Original file line number Diff line number Diff line change @@ -1202,6 +1202,11 @@ class CallInstruction extends Instruction {
12021202 final Instruction getPositionalArgument ( int index ) {
12031203 result = getPositionalArgumentOperand ( index ) .getDef ( )
12041204 }
1205+
1206+ /**
1207+ * Gets the number of arguments of the call, including the `this` pointer, if any.
1208+ */
1209+ final int getNumberOfArguments ( ) { result = count ( this .getAnArgumentOperand ( ) ) }
12051210}
12061211
12071212/**
Original file line number Diff line number Diff line change @@ -1202,6 +1202,11 @@ class CallInstruction extends Instruction {
12021202 final Instruction getPositionalArgument ( int index ) {
12031203 result = getPositionalArgumentOperand ( index ) .getDef ( )
12041204 }
1205+
1206+ /**
1207+ * Gets the number of arguments of the call, including the `this` pointer, if any.
1208+ */
1209+ final int getNumberOfArguments ( ) { result = count ( this .getAnArgumentOperand ( ) ) }
12051210}
12061211
12071212/**
You can’t perform that action at this time.
0 commit comments