예제 #1
0
    public void setDelegateFactory(DeclarationProviderFactory delegateFactory) {
      this.delegateFactory = delegateFactory;

      PackageMemberDeclarationProvider provider =
          delegateFactory.getPackageMemberDeclarationProvider(FqName.ROOT);
      if (rootPackageProvider == null) {
        assert provider != null;
        rootPackageProvider = new AdaptablePackageMemberDeclarationProvider(provider);
      } else {
        rootPackageProvider.addDelegateProvider(provider);
      }
    }
예제 #2
0
 @NotNull
 @Override
 public ClassMemberDeclarationProvider getClassMemberDeclarationProvider(
     @NotNull JetClassLikeInfo classLikeInfo) {
   return delegateFactory.getClassMemberDeclarationProvider(classLikeInfo);
 }