Class CrossChunkMethodMotion

  • All Implemented Interfaces:
    CompilerPass

    public class CrossChunkMethodMotion
    extends java.lang.Object
    implements CompilerPass
    Move prototype methods into later chunks.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String STUB_DECLARATIONS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(Node externRoot, Node root)
      Process the JS with root node root.
      • Methods inherited from class java.lang.Object

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

      • STUB_DECLARATIONS

        public static final java.lang.String STUB_DECLARATIONS
        See Also:
        Constant Field Values
    • Method Detail

      • process

        public void process​(Node externRoot,
                            Node root)
        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:
        externRoot - Top of external JS tree
        root - Top of JS tree