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:
Chris Smowton
2023-10-24 10:54:35 +01:00
committed by GitHub
parent f552a15aae
commit 59a49eef0b
20 changed files with 93 additions and 19 deletions

View File

@@ -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" }
}