com.google.javascript.jscomp.CompilerPass Java Examples

The following examples show how to use com.google.javascript.jscomp.CompilerPass. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NgClosureRunner.java    From ng-closure-runner with MIT License 5 votes vote down vote up
private CompilerPass createMinerrPass() throws IOException {
  AbstractCompiler compiler = createCompiler();
  PrintStream output = new PrintStream(minerrErrors);
  String code = loadTextResource(minerrJsResourcePath);

  if (minerrUrl != null) {
    return new MinerrPass(
        compiler, output,
        MinerrPass.substituteInCode(code, minerrUrl, minerrSeparator));
  }
  return new MinerrPass(compiler, output);
}
 
Example #2
Source File: JsonMLConversionTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Override
public CompilerPass getProcessor(Compiler compiler) {
  return null; // unused
}
 
Example #3
Source File: MinerrPassTest.java    From ng-closure-runner with MIT License 4 votes vote down vote up
@Override
public CompilerPass getProcessor(Compiler compiler) {
  return new MinerrPass(compiler, new PrintStream(dummyOutput), subCode);
}