Java: Automodel App Mode: rename MethodCall to MethodReturnValue

This commit is contained in:
Stephan Brandauer
2023-09-08 13:57:21 +02:00
parent 704c7ee104
commit bbedd72260

View File

@@ -36,7 +36,7 @@ newtype TApplicationModeEndpoint =
not exists(int i | i < idx and call.getArgument(i).(Argument).isVararg())
)
} or
TMethodCall(Call call) { not call instanceof ConstructorCall } or
TMethodReturnValue(Call call) { not call instanceof ConstructorCall } or
TOverriddenParameter(Parameter p, Method overriddenMethod) {
not p.getCallable().callsConstructor(_) and
p.getCallable().(Method).overrides(overriddenMethod)
@@ -168,10 +168,10 @@ class ImplicitVarargsArray extends ApplicationModeEndpoint, TImplicitVarargsArra
* An endpoint that represents a method call. The `ReturnValue` of a method call
* may be a source.
*/
class MethodCall extends ApplicationModeEndpoint, TMethodCall {
class MethodReturnValue extends ApplicationModeEndpoint, TMethodReturnValue {
Call call;
MethodCall() { this = TMethodCall(call) }
MethodReturnValue() { this = TMethodReturnValue(call) }
override Callable getCallable() { result = call.getCallee() }