Package com.google.javascript.jscomp
Class CompilerOptionsPreprocessor
- java.lang.Object
-
- com.google.javascript.jscomp.CompilerOptionsPreprocessor
-
public final class CompilerOptionsPreprocessor extends java.lang.Object
Checks for combinations of options that are incompatible, i.e. will produce incorrect code.This is run by Compiler#compileInternal, which is not run during unit tests. The catch is that it's run after Compiler#initOptions, so if for example you want to change the warningsGuard, you can't do it here.
Also, turns off options if the provided options don't make sense together.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompilerOptionsPreprocessor.InvalidOptionsException
Exception to indicate incompatible options in the CompilerOptions.
-