Inlined the only usage of CompilerSpecialMode.isStubs().

This commit is contained in:
Evgeny Gerashchenko
2012-07-05 15:07:21 +04:00
parent 6e7d08b478
commit aef2c372e1
2 changed files with 2 additions and 5 deletions
@@ -36,6 +36,7 @@ import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation;
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity;
import org.jetbrains.jet.lang.psi.JetFile;
import org.jetbrains.jet.lang.psi.JetPsiUtil;
import org.jetbrains.jet.lang.resolve.java.CompilerSpecialMode;
import org.jetbrains.jet.lang.resolve.name.FqName;
import org.jetbrains.jet.lang.resolve.AnalyzerScriptParameter;
import org.jetbrains.jet.lang.resolve.java.AnalyzerFacadeForJVM;
@@ -258,7 +259,7 @@ public class KotlinToJVMBytecodeCompiler {
@Nullable
public static GenerationState analyzeAndGenerate(K2JVMCompileEnvironmentConfiguration configuration) {
return analyzeAndGenerate(configuration, configuration.getEnvironment().getCompilerSpecialMode().isStubs());
return analyzeAndGenerate(configuration, configuration.getEnvironment().getCompilerSpecialMode() == CompilerSpecialMode.BUILTINS);
}
@Nullable
@@ -27,8 +27,4 @@ public enum CompilerSpecialMode {
IDEA,
JS,
;
public boolean isStubs() {
return this == BUILTINS || this == JDK_HEADERS;
}
}