本文整理了Java中com.google.javascript.jscomp.Compiler.initWarningsGuard()
方法的一些代码示例,展示了Compiler.initWarningsGuard()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Compiler.initWarningsGuard()
方法的具体详情如下:
包路径:com.google.javascript.jscomp.Compiler
类名称:Compiler
方法名:initWarningsGuard
暂无
代码示例来源:origin: com.google.javascript/closure-compiler
@GwtIncompatible("ObjectInputStream")
public void restoreState(InputStream inputStream) throws IOException, ClassNotFoundException {
initWarningsGuard(options.getWarningsGuard());
maybeSetTracker();
代码示例来源:origin: org.scala-js/closure-compiler-java-6
compiler.initWarningsGuard(options.getWarningsGuard());
List<SourceFile> inputs =
createSourceInputs(jsModuleSpecs, config.mixedJsSources, jsonFiles);
代码示例来源:origin: com.google.javascript/closure-compiler
compiler.initWarningsGuard(options.getWarningsGuard());
List<SourceFile> inputs =
createSourceInputs(jsModuleSpecs, config.mixedJsSources, jsonFiles);
代码示例来源:origin: com.google.javascript/closure-compiler
initWarningsGuard(options.getWarningsGuard());
代码示例来源:origin: org.scala-js/closure-compiler-java-6
/**
* Initializes the compiler options. It's called as part of a normal compile() job.
* Public for the callers that are not doing a normal compile() job.
*/
public void initOptions(CompilerOptions options) {
this.options = options;
this.languageMode = options.getLanguageIn();
if (errorManager == null) {
if (outStream == null) {
setErrorManager(
new LoggerErrorManager(createMessageFormatter(), logger));
} else {
PrintStreamErrorManager printer =
new PrintStreamErrorManager(createMessageFormatter(), outStream);
printer.setSummaryDetailLevel(options.summaryDetailLevel);
setErrorManager(printer);
}
}
reconcileOptionsWithGuards();
if (options.legacyCodeCompile) {
options.disambiguateProperties = false;
options.ambiguateProperties = false;
options.useNonStrictWarningsGuard();
}
initWarningsGuard(options.getWarningsGuard());
}
内容来源于网络,如有侵权,请联系作者删除!