Local variable renamed
This commit is contained in:
@@ -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
|
// 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
|
// Otherwise, the analyzer gets confused and can't, for example, tell which files come as sources and which
|
||||||
// must be loaded from .class files
|
// must be loaded from .class files
|
||||||
AnalyzeExhaust context = AnalyzerFacadeForJVM.shallowAnalyzeFiles(
|
AnalyzeExhaust exhaust = AnalyzerFacadeForJVM.shallowAnalyzeFiles(
|
||||||
JetFilesProvider.getInstance(project).sampleToAllFilesInModule().fun(file));
|
JetFilesProvider.getInstance(project).sampleToAllFilesInModule().fun(file));
|
||||||
|
|
||||||
if (context.isError()) {
|
if (exhaust.isError()) {
|
||||||
throw new IllegalStateException("failed to analyze: " + context.getError(), context.getError());
|
throw new IllegalStateException("failed to analyze: " + exhaust.getError(), exhaust.getError());
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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);
|
GenerationStrategy strategy = new LightClassGenerationStrategy(this, stubStack, answer);
|
||||||
|
|
||||||
strategy.compileCorrectFiles(state, CompilationErrorHandler.THROW_EXCEPTION);
|
strategy.compileCorrectFiles(state, CompilationErrorHandler.THROW_EXCEPTION);
|
||||||
|
|||||||
Reference in New Issue
Block a user