com.google.javascript.jscomp.Compiler.getCleanupPassConfig()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 JavaScript  
字(1.5k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中com.google.javascript.jscomp.Compiler.getCleanupPassConfig()方法的一些代码示例,展示了Compiler.getCleanupPassConfig()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Compiler.getCleanupPassConfig()方法的具体详情如下:
包路径:com.google.javascript.jscomp.Compiler
类名称:Compiler
方法名:getCleanupPassConfig

Compiler.getCleanupPassConfig介绍

暂无

代码示例

代码示例来源:origin: org.scala-js/closure-compiler-java-6

private void processNewScript(JsAst ast, Node originalRoot) {
 Node js = ast.getAstRoot(this);
 Preconditions.checkNotNull(js);
 runHotSwap(originalRoot, js, this.getCleanupPassConfig());
 // NOTE: If hot swap passes that use GlobalNamespace are added, we will need
 // to revisit this approach to clearing GlobalNamespaces
 runHotSwapPass(null, null, ensureDefaultPassConfig().garbageCollectChecks);
 this.getTypeRegistry().clearNamedTypes();
 this.removeSyntheticVarsInput();
 runHotSwap(originalRoot, js, this.ensureDefaultPassConfig());
}

代码示例来源:origin: com.google.javascript/closure-compiler

private void processNewScript(JsAst ast, Node originalRoot) {
 setFeatureSet(options.getLanguageIn().toFeatureSet());
 Node js = checkNotNull(ast.getAstRoot(this));
 runHotSwap(originalRoot, js, this.getCleanupPassConfig());
 // NOTE: If hot swap passes that use GlobalNamespace are added, we will need
 // to revisit this approach to clearing GlobalNamespaces
 runHotSwapPass(null, null, ensureDefaultPassConfig().garbageCollectChecks);
 // Type information is not reliable for hotswap runs.
 this.getTypeRegistry().clearNamedTypes();
 this.typeCheckingHasRun = false;
 this.removeSyntheticVarsInput();
 runHotSwap(originalRoot, js, this.ensureDefaultPassConfig());
}

相关文章

微信公众号

Compiler类方法