Class CompilerOptionsPreprocessor

java.lang.Object
com.google.javascript.jscomp.CompilerOptionsPreprocessor

public final class CompilerOptionsPreprocessor extends 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.