Minor, remove unnecessary unwrapping of VariableAsFunctionResolvedCall
Almost all of its methods delegate to functionCall already
This commit is contained in:
@@ -2256,10 +2256,6 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public StackValue invokeFunction(@NotNull Call call, @NotNull ResolvedCall<?> resolvedCall, @NotNull StackValue receiver) {
|
public StackValue invokeFunction(@NotNull Call call, @NotNull ResolvedCall<?> resolvedCall, @NotNull StackValue receiver) {
|
||||||
if (resolvedCall instanceof VariableAsFunctionResolvedCall) {
|
|
||||||
return invokeFunction(call, ((VariableAsFunctionResolvedCall) resolvedCall).getFunctionCall(), receiver);
|
|
||||||
}
|
|
||||||
|
|
||||||
FunctionDescriptor fd = accessibleFunctionDescriptor(resolvedCall);
|
FunctionDescriptor fd = accessibleFunctionDescriptor(resolvedCall);
|
||||||
JetSuperExpression superCallExpression = getSuperCallExpression(call);
|
JetSuperExpression superCallExpression = getSuperCallExpression(call);
|
||||||
boolean superCall = superCallExpression != null;
|
boolean superCall = superCallExpression != null;
|
||||||
@@ -2323,10 +2319,6 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
|
|||||||
@NotNull ResolvedCall<?> resolvedCall,
|
@NotNull ResolvedCall<?> resolvedCall,
|
||||||
@NotNull StackValue receiver
|
@NotNull StackValue receiver
|
||||||
) {
|
) {
|
||||||
if (resolvedCall instanceof VariableAsFunctionResolvedCall) {
|
|
||||||
resolvedCall = ((VariableAsFunctionResolvedCall) resolvedCall).getFunctionCall();
|
|
||||||
}
|
|
||||||
|
|
||||||
CallGenerator callGenerator = getOrCreateCallGenerator(resolvedCall);
|
CallGenerator callGenerator = getOrCreateCallGenerator(resolvedCall);
|
||||||
CallableDescriptor descriptor = resolvedCall.getResultingDescriptor();
|
CallableDescriptor descriptor = resolvedCall.getResultingDescriptor();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user