Declaration providers on stubs

This commit is contained in:
Nikolay Krasko
2012-06-29 18:07:04 +04:00
parent ede771935f
commit ce283d038a
10 changed files with 376 additions and 8 deletions
@@ -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);