Refactor some of the tests for loading descriptors.
Move most of the logic to LoadDescriptorUtil and refactor to avoid duplication. More descriptive names for LoadDescriptorUtil methods. Minor code improvements.
This commit is contained in:
@@ -58,7 +58,7 @@ public class GenerationUtils {
|
||||
|
||||
|
||||
@NotNull
|
||||
private static GenerationState compileFilesGetGenerationState(@NotNull AnalyzeExhaust analyzeExhaust, @NotNull List<JetFile> files) {
|
||||
public static GenerationState compileFilesGetGenerationState(@NotNull AnalyzeExhaust analyzeExhaust, @NotNull List<JetFile> files) {
|
||||
analyzeExhaust.throwIfError();
|
||||
GenerationState state = new GenerationState(ClassBuilderFactories.TEST, analyzeExhaust, files);
|
||||
state.compileCorrectFiles(CompilationErrorHandler.THROW_EXCEPTION);
|
||||
|
||||
Reference in New Issue
Block a user