Skip to content

Commit 3fe6ba6

Browse files
committed
Revert "Rust: add Callable::getParam and CallExprBase::getArg shortcuts"
This reverts commit c70decb.
1 parent 48721dc commit 3fe6ba6

File tree

18 files changed

+33
-132
lines changed

18 files changed

+33
-132
lines changed

rust/ql/.generated.list

Lines changed: 9 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/.gitattributes

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/elements/internal/CallExprBaseImpl.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,5 @@ module Impl {
2828
class CallExprBase extends Generated::CallExprBase {
2929
/** Gets the static target of this call, if any. */
3030
Callable getStaticTarget() { none() } // overridden by subclasses, but cannot be made abstract
31-
32-
override Expr getArg(int index) { result = this.getArgList().getArg(index) }
3331
}
3432
}

rust/ql/lib/codeql/rust/elements/internal/CallableImpl.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// generated by codegen, remove this comment if you wish to edit this file
12
/**
23
* This module provides a hand-modifiable wrapper around the generated class `Callable`.
34
*
@@ -15,7 +16,5 @@ module Impl {
1516
/**
1617
* A callable. Either a `Function` or a `ClosureExpr`.
1718
*/
18-
class Callable extends Generated::Callable {
19-
override Param getParam(int index) { result = this.getParamList().getParam(index) }
20-
}
19+
class Callable extends Generated::Callable { }
2120
}

0 commit comments

Comments
 (0)