Refactoring: don't register scopes explicitly, get them from scope provider on demand

This commit is contained in:
Nikolay Krasko
2015-05-18 15:03:45 +03:00
parent b81d8eb484
commit 980a0d19be
6 changed files with 28 additions and 39 deletions
@@ -127,7 +127,8 @@ public class ReplInterpreter {
scopeProvider
);
this.topDownAnalysisContext = new TopDownAnalysisContext(TopDownAnalysisMode.LocalDeclarations, DataFlowInfo.EMPTY);
this.topDownAnalysisContext = new TopDownAnalysisContext(TopDownAnalysisMode.LocalDeclarations, DataFlowInfo.EMPTY,
container.getResolveSession().getScopeProvider());
this.topDownAnalyzer = container.getLazyTopDownAnalyzerForTopLevel();
this.resolveSession = container.getResolveSession();