Skip to content

Commit a19200d

Browse files
committed
wip2
1 parent 0751c75 commit a19200d

File tree

1 file changed

+9
-0
lines changed
  • rust/ql/lib/codeql/rust/elements

1 file changed

+9
-0
lines changed

rust/ql/lib/codeql/rust/elements/Call.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ private import internal.CallImpl
77

88
final class Call = Impl::Call;
99

10+
// todo: remove once internal query has been updated
11+
final class CallExpr extends ParenArgsExpr {
12+
Expr getFunction() { result = this.getBase() }
13+
14+
Expr getArg(int i) { result = this.getArgument(i) }
15+
16+
int getNumberOfArgs() { result = this.getNumberOfArguments() }
17+
}
18+
1019
private predicate isClosureCall(ParenArgsExpr call) {
1120
exists(Expr receiver | receiver = call.getBase() |
1221
// All calls to complex expressions and local variable accesses are lambda calls

0 commit comments

Comments
 (0)