Local variable renamed

This commit is contained in:
Andrey Breslav
2012-12-17 17:30:57 +04:00
parent f64487eb8b
commit 39b6c53ef3
@@ -208,15 +208,15 @@ public class JetLightClass extends AbstractLightClass implements JetJavaMirrorMa
// The context must reflect _all files in the module_. not only the current file
// Otherwise, the analyzer gets confused and can't, for example, tell which files come as sources and which
// must be loaded from .class files
AnalyzeExhaust context = AnalyzerFacadeForJVM.shallowAnalyzeFiles(
JetFilesProvider.getInstance(project).sampleToAllFilesInModule().fun(file));
AnalyzeExhaust exhaust = AnalyzerFacadeForJVM.shallowAnalyzeFiles(
JetFilesProvider.getInstance(project).sampleToAllFilesInModule().fun(file));
if (context.isError()) {
throw new IllegalStateException("failed to analyze: " + context.getError(), context.getError());
if (exhaust.isError()) {
throw new IllegalStateException("failed to analyze: " + exhaust.getError(), exhaust.getError());
}
try {
GenerationState state = new GenerationState(project, builderFactory, context, Collections.singletonList(file));
GenerationState state = new GenerationState(project, builderFactory, exhaust, Collections.singletonList(file));
GenerationStrategy strategy = new LightClassGenerationStrategy(this, stubStack, answer);
strategy.compileCorrectFiles(state, CompilationErrorHandler.THROW_EXCEPTION);