use of com.google.javascript.jscomp.HotSwapCompilerPass in project ow by vtst.
the class CompilerRun method processCustomPassesOnNewScript.
private void processCustomPassesOnNewScript(JsAst ast) {
if (!keepCompilationResultsInMemory)
return;
if (options.customPasses == null)
return;
Node scriptRoot = ast.getAstRoot(compiler);
Node originalRoot = compiler.getRoot();
for (CompilerPass pass : options.customPasses.get(CustomPassExecutionTime.BEFORE_CHECKS)) {
if (pass instanceof HotSwapCompilerPass) {
((HotSwapCompilerPass) pass).hotSwapScript(scriptRoot, originalRoot);
}
}
}
Aggregations