Apply simple suggestions from code review

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
Chris Smowton
2023-10-24 12:51:03 +01:00
committed by GitHub
parent efb63aada3
commit e3edea2a5f
2 changed files with 4 additions and 4 deletions

View File

@@ -1879,7 +1879,7 @@ class VarRead extends VarAccess {
/** DEPRECATED: Alias for `VarRead`. */
deprecated class RValue = VarRead;
/** A method access is an invocation of a method with a list of arguments. */
/** A method call is an invocation of a method with a list of arguments. */
class MethodCall extends Expr, Call, @methodaccess {
/** Gets the qualifying expression of this method access, if any. */
override Expr getQualifier() { result.isNthChildOf(this, -1) }
@@ -1928,7 +1928,7 @@ class MethodCall extends Expr, Call, @methodaccess {
}
/**
* Holds if this is a method access to an instance method of `this`. That is,
* Holds if this is a method call to an instance method of `this`. That is,
* the qualifier is either an explicit or implicit unqualified `this` or `super`.
*/
predicate isOwnMethodCall() { Qualifier::ownMemberAccess(this) }
@@ -1937,7 +1937,7 @@ class MethodCall extends Expr, Call, @methodaccess {
deprecated predicate isOwnMethodAccess() { this.isOwnMethodCall() }
/**
* Holds if this is a method access to an instance method of the enclosing
* Holds if this is a method call to an instance method of the enclosing
* class `t`. That is, the qualifier is either an explicit or implicit
* `t`-qualified `this` or `super`.
*/

View File

@@ -259,7 +259,7 @@ class MethodSystemGetProperty extends ValuePreservingMethod {
}
/**
* An access to a method named `getProperty` on class `java.lang.System`.
* A call to a method named `getProperty` on class `java.lang.System`.
*/
class MethodCallSystemGetProperty extends MethodCall {
MethodCallSystemGetProperty() { this.getMethod() instanceof MethodSystemGetProperty }