BodiesResolveContext exposes TopDownAnalysisParameters

This commit is contained in:
Andrey Breslav
2014-02-24 15:51:49 +04:00
parent fb0713d1c2
commit 442658396d
4 changed files with 43 additions and 36 deletions
@@ -60,6 +60,8 @@ public interface BodiesResolveContext extends GlobalContext {
Map<JetScript, WritableScope> getScriptScopes();
DataFlowInfo getOuterDataFlowInfo();
@NotNull
TopDownAnalysisParameters getTopDownAnalysisParameters();
void setTopDownAnalysisParameters(TopDownAnalysisParameters parameters);
boolean completeAnalysisNeeded(@NotNull PsiElement element);
@@ -116,6 +116,12 @@ public class CachedBodiesResolveContext implements BodiesResolveContext {
return outerDataFlowInfo;
}
@NotNull
@Override
public TopDownAnalysisParameters getTopDownAnalysisParameters() {
return topDownAnalysisParameters;
}
@Override
public void setTopDownAnalysisParameters(@NotNull TopDownAnalysisParameters parameters) {
topDownAnalysisParameters = parameters;
@@ -69,6 +69,8 @@ public class TopDownAnalysisContext implements BodiesResolveContext {
this.topDownAnalysisParameters = topDownAnalysisParameters;
}
@Override
@NotNull
public TopDownAnalysisParameters getTopDownAnalysisParameters() {
return topDownAnalysisParameters;
}