Class CoverageInstrumentationPass
- java.lang.Object
-
- com.google.javascript.jscomp.instrumentation.CoverageInstrumentationPass
-
- All Implemented Interfaces:
CompilerPass
@GwtIncompatible("FileInstrumentationData") public class CoverageInstrumentationPass extends java.lang.Object implements CompilerPass
This code implements the instrumentation pass over the AST (returned by JSCompiler).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverageInstrumentationPass.CoverageReach
Configures which statements in the AST should be instrumented
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JS_INSTRUMENTATION_OBJECT_NAME
-
Constructor Summary
Constructors Constructor Description CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach)
Deprecated.CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, java.lang.String productionInstrumentationArrayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(Node externsNode, Node rootNode)
Process the JS with root node root.
-
-
-
Field Detail
-
JS_INSTRUMENTATION_OBJECT_NAME
public static final java.lang.String JS_INSTRUMENTATION_OBJECT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoverageInstrumentationPass
public CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, java.lang.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 Detail
-
process
public void process(Node externsNode, Node rootNode)
Description copied from interface:CompilerPass
Process the JS with root node root. Can modify the contents of each Node tree- Specified by:
process
in interfaceCompilerPass
- Parameters:
externsNode
- Top of external JS treerootNode
- Top of JS tree
-
-