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:
Pavel V. Talanov
2012-08-23 12:38:08 +04:00
parent 4457c7b6ba
commit f3dd54e70f
6 changed files with 134 additions and 140 deletions
@@ -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);