Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9070b0

Browse files
committed
C#: Add getCall predicate to ArgumentNode.
1 parent c552ab4 commit e9070b0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,9 @@ class ArgumentNode extends Node instanceof ArgumentNodeImpl {
964964
final predicate argumentOf(DataFlowCall call, ArgumentPosition pos) {
965965
super.argumentOf(call, pos)
966966
}
967+
968+
/** Gets the call in which this node is an argument. */
969+
DataFlowCall getCall() { this.argumentOf(result, _) }
967970
}
968971

969972
abstract private class ArgumentNodeImpl extends Node {

0 commit comments

Comments
 (0)