Declaration providers on stubs
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ public abstract class AbstractLazyMemberScope<D extends DeclarationDescriptor, D
|
||||
|
||||
Set<FunctionDescriptor> result = Sets.newLinkedHashSet();
|
||||
|
||||
List<JetNamedFunction> declarations = declarationProvider.getFunctionDeclarations(name);
|
||||
Collection<JetNamedFunction> declarations = declarationProvider.getFunctionDeclarations(name);
|
||||
for (JetNamedFunction functionDeclaration : declarations) {
|
||||
JetScope resolutionScope = getScopeForMemberDeclarationResolution(functionDeclaration);
|
||||
result.add(resolveSession.getInjector().getDescriptorResolver().resolveFunctionDescriptor(thisDescriptor, resolutionScope,
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.jetbrains.jet.lang.psi.JetNamedFunction;
|
||||
import org.jetbrains.jet.lang.psi.JetProperty;
|
||||
import org.jetbrains.jet.lang.resolve.name.Name;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -33,7 +34,7 @@ public interface DeclarationProvider {
|
||||
List<JetDeclaration> getAllDeclarations();
|
||||
|
||||
@NotNull
|
||||
List<JetNamedFunction> getFunctionDeclarations(@NotNull Name name);
|
||||
Collection<JetNamedFunction> getFunctionDeclarations(@NotNull Name name);
|
||||
|
||||
@NotNull
|
||||
List<JetProperty> getPropertyDeclarations(@NotNull Name name);
|
||||
|
||||
Reference in New Issue
Block a user