Add method for getting all classifiers with given name from the scope

This commit is contained in:
Nikolay Krasko
2014-01-15 15:53:37 +04:00
parent c46214fd31
commit 97759f5bb7
11 changed files with 81 additions and 6 deletions
@@ -160,6 +160,13 @@ public abstract class DeserializedMemberScope implements JetScope {
return getClassDescriptor(name);
}
@NotNull
@Override
public final Collection<ClassifierDescriptor> getClassifiers(@NotNull Name name) {
ClassifierDescriptor classifier = getClassifier(name);
return classifier != null ? Collections.singleton(classifier) : Collections.<ClassifierDescriptor>emptyList();
}
@Nullable
protected abstract ClassifierDescriptor getClassDescriptor(@NotNull Name name);