Interface for classes that can compile JS. Class has single function "process", which is passed the root node of the parsed JS tree, as well as the root node of the external JS tree (used to provide a public API and prevent renaming of system functions). Use this class to support
| 29 | * <p>Use this class to support testing with BaseCompilerTest</p> |
| 30 | */ |
| 31 | public interface CompilerPass { |
| 32 | |
| 33 | /** |
| 34 | * Process the JS with root node root. |
| 35 | * Can modify the contents of each Node tree |
| 36 | * @param externs Top of external JS tree |
| 37 | * @param root Top of JS tree |
| 38 | */ |
| 39 | void process(Node externs, Node root); |
| 40 | } |
no outgoing calls
no test coverage detected