Class CoverageInstrumentationPass
java.lang.Object
com.google.javascript.jscomp.instrumentation.CoverageInstrumentationPass
- All Implemented Interfaces:
CompilerPass
This code implements the instrumentation pass over the AST (returned by JSCompiler).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConfigures which statements in the AST should be instrumented -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach) Deprecated.CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, String productionInstrumentationArrayName) -
Method Summary
-
Field Details
-
JS_INSTRUMENTATION_OBJECT_NAME
- See Also:
-
-
Constructor Details
-
CoverageInstrumentationPass
public CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, String productionInstrumentationArrayName) - Parameters:
compiler- the compiler which generates the AST.
-
CoverageInstrumentationPass
@InlineMe(replacement="this(compiler, reach, InstrumentOption.LINE_ONLY, \"\")", imports="com.google.javascript.jscomp.CompilerOptions.InstrumentOption") @Deprecated public CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach) Deprecated.
-
-
Method Details
-
process
Description copied from interface:CompilerPassProcess the JS with root node root. Can modify the contents of each Node tree- Specified by:
processin interfaceCompilerPass- Parameters:
externsNode- Top of external JS treerootNode- Top of JS tree
-