mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02:00
Add aliases for public, importable renamed classes and predicates.
Also rename and aliases a couple of uses of Access noted along the way.
This commit is contained in:
@@ -1933,6 +1933,9 @@ class MethodCall extends Expr, Call, @methodaccess {
|
||||
*/
|
||||
predicate isOwnMethodCall() { Qualifier::ownMemberAccess(this) }
|
||||
|
||||
/** DEPRECATED: Alias for `isOwnMethodCall`. */
|
||||
deprecated predicate isOwnMethodAccess() { this.isOwnMethodCall() }
|
||||
|
||||
/**
|
||||
* Holds if this is a method access to an instance method of the enclosing
|
||||
* class `t`. That is, the qualifier is either an explicit or implicit
|
||||
@@ -1940,6 +1943,9 @@ class MethodCall extends Expr, Call, @methodaccess {
|
||||
*/
|
||||
predicate isEnclosingMethodCall(RefType t) { Qualifier::enclosingMemberAccess(this, t) }
|
||||
|
||||
/** DEPRECATED: Alias for `isEnclosingMethodCall`. */
|
||||
deprecated predicate isEnclosingMethodAccess() { this.isEnclosingMethodCall() }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "MethodCall" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user