Created
July 4, 2012 10:59
-
-
Save abreslav/3046740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModuleConfiguration moduleConfiguration = new ModuleConfiguration() { | |
@Override | |
public void addDefaultImports(@NotNull Collection<JetImportDirective> directives) { | |
for (ImportPath defaultJetImport : DefaultModuleConfiguration.DEFAULT_JET_IMPORTS) { | |
directives.add(JetPsiFactory.createImportDirective(project, defaultJetImport)); | |
} | |
} | |
@Override | |
public void extendNamespaceScope( | |
@NotNull BindingTrace trace, | |
@NotNull NamespaceDescriptor namespaceDescriptor, | |
@NotNull WritableScope namespaceMemberScope | |
) { | |
System.out.println(namespaceDescriptor); | |
System.out.println(namespaceMemberScope); | |
} | |
}; | |
FileBasedDeclarationProviderFactory declarationProviderFactory = new FileBasedDeclarationProviderFactory(files); // CAN'T MOVE THIS UP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment