Minor. Renamed variable.
This commit is contained in:
@@ -144,9 +144,9 @@ public class JetSourceNavigationHelper {
|
|||||||
final @NotNull Decl decompiledDeclaration,
|
final @NotNull Decl decompiledDeclaration,
|
||||||
NavigationStrategy<Decl, Descr> navigationStrategy
|
NavigationStrategy<Decl, Descr> navigationStrategy
|
||||||
) {
|
) {
|
||||||
String entityName = decompiledDeclaration.getName();
|
String memberNameAsString = decompiledDeclaration.getName();
|
||||||
assert entityName != null;
|
assert memberNameAsString != null;
|
||||||
Name entityNameAsName = Name.identifier(entityName);
|
Name memberName = Name.identifier(memberNameAsString);
|
||||||
|
|
||||||
JetTypeReference receiverType = navigationStrategy.getReceiverType(decompiledDeclaration);
|
JetTypeReference receiverType = navigationStrategy.getReceiverType(decompiledDeclaration);
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ public class JetSourceNavigationHelper {
|
|||||||
BindingContext bindingContext = bindingContextAndNamespaceDescriptor.first;
|
BindingContext bindingContext = bindingContextAndNamespaceDescriptor.first;
|
||||||
NamespaceDescriptor namespaceDescriptor = bindingContextAndNamespaceDescriptor.second;
|
NamespaceDescriptor namespaceDescriptor = bindingContextAndNamespaceDescriptor.second;
|
||||||
|
|
||||||
for (Descr candidate : navigationStrategy.getCandidateDescriptors(namespaceDescriptor.getMemberScope(), entityNameAsName)) {
|
for (Descr candidate : navigationStrategy.getCandidateDescriptors(namespaceDescriptor.getMemberScope(), memberName)) {
|
||||||
if (receiversMatch(receiverType, candidate.getReceiverParameter())
|
if (receiversMatch(receiverType, candidate.getReceiverParameter())
|
||||||
&& navigationStrategy.declarationAndDescriptorMatch(decompiledDeclaration, candidate)) {
|
&& navigationStrategy.declarationAndDescriptorMatch(decompiledDeclaration, candidate)) {
|
||||||
return (JetDeclaration) BindingContextUtils.descriptorToDeclaration(bindingContext, candidate);
|
return (JetDeclaration) BindingContextUtils.descriptorToDeclaration(bindingContext, candidate);
|
||||||
@@ -183,7 +183,7 @@ public class JetSourceNavigationHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClassDescriptor expectedContainer = isClassObject ? classDescriptor.getClassObjectDescriptor() : classDescriptor;
|
ClassDescriptor expectedContainer = isClassObject ? classDescriptor.getClassObjectDescriptor() : classDescriptor;
|
||||||
for (Descr candidate : navigationStrategy.getCandidateDescriptors(memberScope, entityNameAsName)) {
|
for (Descr candidate : navigationStrategy.getCandidateDescriptors(memberScope, memberName)) {
|
||||||
if (candidate.getContainingDeclaration() == expectedContainer) {
|
if (candidate.getContainingDeclaration() == expectedContainer) {
|
||||||
JetDeclaration property = (JetDeclaration) BindingContextUtils.descriptorToDeclaration(bindingContext, candidate);
|
JetDeclaration property = (JetDeclaration) BindingContextUtils.descriptorToDeclaration(bindingContext, candidate);
|
||||||
if (property != null) {
|
if (property != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user