mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Rust: Remove some predicates
This commit is contained in:
@@ -44,12 +44,6 @@ module Impl {
|
||||
override string toStringImpl() { result = this.getFunction().toAbbreviatedString() + "(...)" }
|
||||
|
||||
override Expr getSyntacticPositionalArgument(int i) { result = getSyntacticArg(this, i) }
|
||||
|
||||
// todo: remove once internal query has been updated
|
||||
Expr getArg(int i) { result = getSyntacticArg(this, i) }
|
||||
|
||||
// todo: remove once internal query has been updated
|
||||
int getNumberOfArgs() { result = this.getNumberOfSyntacticArguments() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,9 +39,6 @@ module Impl {
|
||||
/** Gets an argument of this call. */
|
||||
Expr getAnArgument() { result = this.getArgument(_) }
|
||||
|
||||
// todo: remove once internal query has been updated
|
||||
Expr getReceiver() { none() }
|
||||
|
||||
/**
|
||||
* Gets the `i`th positional argument of this call.
|
||||
*
|
||||
@@ -71,9 +68,6 @@ module Impl {
|
||||
/** Gets the name of the function called, if any. */
|
||||
string getTargetName() { result = this.getStaticTarget().getName().getText() }
|
||||
|
||||
// todo: remove once internal query has been updated
|
||||
string getMethodName() { result = this.getTargetName() }
|
||||
|
||||
/** Gets a runtime target of this call, if any. */
|
||||
pragma[nomagic]
|
||||
Function getARuntimeTarget() {
|
||||
@@ -110,6 +104,6 @@ module Impl {
|
||||
* x[y]; // `x` is receiver
|
||||
* ```
|
||||
*/
|
||||
override Expr getReceiver() { none() }
|
||||
Expr getReceiver() { none() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user