Class 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).
    • Field Detail

      • JS_INSTRUMENTATION_OBJECT_NAME

        public static final java.lang.String JS_INSTRUMENTATION_OBJECT_NAME
        See Also:
        Constant Field Values
    • 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 interface CompilerPass
        Parameters:
        externsNode - Top of external JS tree
        rootNode - Top of JS tree