Minor: LocalLookup: lookupLocal -> isLocal
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user