From 39b6c53ef3a7fdeb664fb7d8ff8c6d4281be7704 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Mon, 17 Dec 2012 17:30:57 +0400 Subject: [PATCH] Local variable renamed --- .../src/org/jetbrains/jet/asJava/JetLightClass.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/JetLightClass.java b/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/JetLightClass.java index d80846dffd4..b5157b120a5 100644 --- a/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/JetLightClass.java +++ b/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/JetLightClass.java @@ -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);