use of com.google.javascript.jscomp.BlackHoleErrorManager in project closure-compiler by google.
the class MatchersTest method getCompiler.
private static Compiler getCompiler(String externs, String jsInput) {
Compiler compiler = new Compiler(new BlackHoleErrorManager());
compiler.disableThreads();
CompilerOptions options = RefactoringDriver.getCompilerOptions();
compiler.compile(ImmutableList.of(SourceFile.fromCode("externs", externs)), ImmutableList.of(SourceFile.fromCode("test", jsInput)), options);
return compiler;
}
use of com.google.javascript.jscomp.BlackHoleErrorManager in project closure-compiler by google.
the class IntegrationTestCase method compile.
protected Compiler compile(CompilerOptions options, ImmutableList<JSChunk> modules) {
Compiler compiler = useNoninjectingCompiler ? createNoninjectingCompiler(new BlackHoleErrorManager()) : createCompiler(new BlackHoleErrorManager());
lastCompiler = compiler;
compiler.compileModules(externs, modules, options);
return compiler;
}
use of com.google.javascript.jscomp.BlackHoleErrorManager in project closure-compiler by google.
the class RefactoringDriver method createCompiler.
private static Compiler createCompiler(List<SourceFile> inputs, List<SourceFile> externs, CompilerOptions compilerOptions) {
Compiler compiler = new Compiler(new BlackHoleErrorManager());
compiler.disableThreads();
compiler.compile(externs, inputs, compilerOptions);
return compiler;
}
Aggregations