Class CrossChunkReferenceCollector

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enterScope​(NodeTraversal t)
      Updates block stack and invokes any additional behavior.
      void exitScope​(NodeTraversal t)
      Updates block stack and invokes any additional behavior.
      void process​(Node root)  
      void process​(Node externs, Node root)
      Convenience method for running this pass over a tree with this class as a callback.
      boolean shouldTraverse​(NodeTraversal nodeTraversal, Node n, Node parent)
      Visits a node in preorder (before its children) and decides whether its children should be traversed.
      void visit​(NodeTraversal t, Node n, Node parent)
      For each node, update the block stack and reference collection as appropriate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • process

        public void process​(Node externs,
                            Node root)
        Convenience method for running this pass over a tree with this class as a callback.
        Specified by:
        process in interface CompilerPass
        Parameters:
        externs - Top of external JS tree
        root - Top of JS tree
      • process

        public void process​(Node root)
      • visit

        public void visit​(NodeTraversal t,
                          Node n,
                          Node parent)
        For each node, update the block stack and reference collection as appropriate.
        Specified by:
        visit in interface NodeTraversal.Callback
        Parameters:
        t - The current traversal.
        n - The current node.
        parent - The parent of the current node.