We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c739bb6 commit e237344Copy full SHA for e237344
csharp/ql/lib/semmle/code/csharp/exprs/Call.qll
@@ -525,6 +525,16 @@ class ExtensionOperatorCall extends OperatorCall {
525
ExtensionOperatorCall() { this.getTarget() instanceof ExtensionOperator }
526
527
override string getAPrimaryQlClass() { result = "ExtensionOperatorCall" }
528
+
529
+ private predicate isOrdinaryStaticCall() {
530
+ not exists(Expr e | e = this.getChildExpr(-1) | not e instanceof TypeAccess)
531
+ }
532
533
+ override Expr getArgument(int i) {
534
+ exists(int j | result = this.getChildExpr(j) |
535
+ if this.isOrdinaryStaticCall() then (j = i and j >= 0) else (j = i - 1 and j >= -1)
536
+ )
537
538
}
539
540
/**
0 commit comments