Minor: LocalLookup: lookupLocal -> isLocal

This commit is contained in:
Dmitry Petrov
2017-11-02 12:52:46 +03:00
parent 2d56837409
commit ff0a2562e0
2 changed files with 4 additions and 4 deletions
@@ -1868,7 +1868,7 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
}
@Override
public boolean lookupLocal(DeclarationDescriptor descriptor) {
public boolean isLocal(DeclarationDescriptor descriptor) {
return lookupLocalIndex(descriptor) != -1;
}
@@ -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();