diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java index 560e95dcc78..fefb32454b5 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java @@ -1868,7 +1868,7 @@ public class ExpressionCodegen extends KtVisitor impleme } @Override - public boolean lookupLocal(DeclarationDescriptor descriptor) { + public boolean isLocal(DeclarationDescriptor descriptor) { return lookupLocalIndex(descriptor) != -1; } diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/context/LocalLookup.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/context/LocalLookup.java index 6e452559f14..9d696194348 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/context/LocalLookup.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/context/LocalLookup.java @@ -34,7 +34,7 @@ import static org.jetbrains.kotlin.codegen.binding.CodegenBinding.*; import static org.jetbrains.kotlin.types.expressions.ExpressionTypingUtils.isLocalFunction; public interface LocalLookup { - boolean lookupLocal(DeclarationDescriptor descriptor); + boolean isLocal(DeclarationDescriptor descriptor); enum LocalLookupCase { VAR { @@ -53,7 +53,7 @@ public interface LocalLookup { ) { VariableDescriptor vd = (VariableDescriptor) d; - boolean idx = localLookup != null && localLookup.lookupLocal(vd); + boolean idx = localLookup != null && localLookup.isLocal(vd); if (!idx) return null; KotlinType delegateType = @@ -101,7 +101,7 @@ public interface LocalLookup { ) { FunctionDescriptor vd = (FunctionDescriptor) d; - boolean idx = localLookup != null && localLookup.lookupLocal(vd); + boolean idx = localLookup != null && localLookup.isLocal(vd); if (!idx) return null; BindingContext bindingContext = state.getBindingContext();