Removed ModuleConfiguration.
This commit is contained in:
@@ -93,7 +93,6 @@ public final class AnalyzerFacadeForJS {
|
||||
BindingTrace trace = libraryContext == null
|
||||
? new BindingTraceContext()
|
||||
: new DelegatingBindingTrace(libraryContext, "trace with preanalyzed library");
|
||||
owner.setModuleConfiguration(new JsConfiguration());
|
||||
InjectorForTopDownAnalyzerForJs injector = new InjectorForTopDownAnalyzerForJs(project, topDownAnalysisParameters, trace, owner);
|
||||
try {
|
||||
Collection<JetFile> allFiles = libraryModule != null ?
|
||||
@@ -148,9 +147,7 @@ public final class AnalyzerFacadeForJS {
|
||||
LockBasedLazyResolveStorageManager storageManager = new LockBasedLazyResolveStorageManager();
|
||||
FileBasedDeclarationProviderFactory declarationProviderFactory = new FileBasedDeclarationProviderFactory(
|
||||
storageManager, Config.withJsLibAdded(files, config), Predicates.<FqName>alwaysFalse());
|
||||
ModuleDescriptorImpl lazyModule = createJsModule("<lazy module>");
|
||||
lazyModule.setModuleConfiguration(new JsConfiguration());
|
||||
return new ResolveSession(config.getProject(), storageManager, lazyModule, declarationProviderFactory);
|
||||
return new ResolveSession(config.getProject(), storageManager, createJsModule("<lazy module>"), declarationProviderFactory);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -18,15 +18,12 @@ package org.jetbrains.k2js.analyze;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.lang.ModuleConfiguration;
|
||||
import org.jetbrains.jet.lang.descriptors.NamespaceDescriptor;
|
||||
import org.jetbrains.jet.lang.resolve.ImportPath;
|
||||
import org.jetbrains.jet.lang.resolve.scopes.WritableScope;
|
||||
import org.jetbrains.jet.lang.types.lang.KotlinBuiltIns;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class JsConfiguration implements ModuleConfiguration {
|
||||
public class JsConfiguration {
|
||||
|
||||
@NotNull
|
||||
public static final List<ImportPath> DEFAULT_IMPORT_PATHS = ImmutableList.of(
|
||||
@@ -37,8 +34,4 @@ public class JsConfiguration implements ModuleConfiguration {
|
||||
|
||||
JsConfiguration() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void extendNamespaceScope(@NotNull NamespaceDescriptor namespaceDescriptor, @NotNull WritableScope namespaceMemberScope) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user