Class CompilerBasedTransformer.CompilerSupplier
java.lang.Object
com.google.javascript.jscomp.bundle.CompilerBasedTransformer.CompilerSupplier
- Direct Known Subclasses:
CoverageInstrumenter.CompilerSupplier
- Enclosing class:
CompilerBasedTransformer
Wraps the Compiler into a more relevant interface, making it easy to test the
CompilerBasedTransformer without depending on implementation details of the Compiler itself.
Also works around the fact that the Compiler is not thread-safe (since we may do multiple
transpiles concurrently), so we supply a fresh instance each time when we're in single-file
mode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final SourceFile
protected static final DiagnosticGroup
protected static final SourceFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Compiler
compiler()
protected CompilerOptions
options()
protected void
setOptions
(CompilerOptions options) boolean
transformed
(Result result)
-
Field Details
-
EXTERNS
-
EMPTY
-
ES5_WARNINGS
-
-
Constructor Details
-
CompilerSupplier
public CompilerSupplier()
-
-
Method Details
-
compile
-
transformed
-
runtime
-
compiler
-
options
-
setOptions
-