add JetScope.getAllDescriptors for KDoc
This commit is contained in:
@@ -108,4 +108,9 @@ public abstract class AbstractScopeAdapter implements JetScope {
|
||||
public Collection<DeclarationDescriptor> getAllDescriptors(@NotNull DescriptorPredicate predicate) {
|
||||
return getWorkerScope().getAllDescriptors(predicate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getAllDescriptors() {
|
||||
return getAllDescriptors(DescriptorPredicate.all());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -231,6 +231,11 @@ public abstract class AbstractLazyMemberScope<D extends DeclarationDescriptor, D
|
||||
return DescriptorPredicateUtils.filter(allDescriptors, predicate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getAllDescriptors() {
|
||||
return getAllDescriptors(DescriptorPredicate.all());
|
||||
}
|
||||
|
||||
protected abstract void addExtraDescriptors();
|
||||
|
||||
@Override
|
||||
|
||||
@@ -166,4 +166,9 @@ public class ChainedScope implements JetScope {
|
||||
}
|
||||
return allDescriptors;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getAllDescriptors() {
|
||||
return getAllDescriptors(DescriptorPredicate.all());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,6 +86,8 @@ public interface JetScope {
|
||||
@NotNull
|
||||
Collection<DeclarationDescriptor> getAllDescriptors(@NotNull DescriptorPredicate predicate);
|
||||
|
||||
Collection<DeclarationDescriptor> getAllDescriptors();
|
||||
|
||||
/**
|
||||
* @return EFFECTIVE implicit receiver at this point (may be corresponding to an outer scope)
|
||||
*/
|
||||
|
||||
@@ -92,6 +92,11 @@ public abstract class JetScopeImpl implements JetScope {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getAllDescriptors() {
|
||||
return getAllDescriptors(DescriptorPredicate.all());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getImplicitReceiversHierarchy(@NotNull List<ReceiverDescriptor> result) {
|
||||
}
|
||||
|
||||
@@ -162,4 +162,9 @@ public class SubstitutingScope implements JetScope {
|
||||
}
|
||||
return allDescriptors;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getAllDescriptors() {
|
||||
return getAllDescriptors(DescriptorPredicate.all());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,6 +117,10 @@ public class ErrorUtils {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getAllDescriptors() {
|
||||
return getAllDescriptors(DescriptorPredicate.all());
|
||||
}
|
||||
}
|
||||
|
||||
private static final ClassDescriptorImpl ERROR_CLASS = new ClassDescriptorImpl(ERROR_MODULE, Collections.<AnnotationDescriptor>emptyList(), Name.special("<ERROR CLASS>")) {
|
||||
|
||||
Reference in New Issue
Block a user