MCPcopy
hub / github.com/google/closure-compiler / CompilerPass

Interface CompilerPass

src/com/google/javascript/jscomp/CompilerPass.java:31–40  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

29 * <p>Use this class to support testing with BaseCompilerTest</p>
30 */
31public 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}

Callers 8

parseMethod · 0.95
parseAndAddColorsMethod · 0.65
processMethod · 0.65
processMethod · 0.65
getProcessorMethod · 0.65

Implementers 15

NoSideEffectCallEnumeratortest/com/google/javascript/jscomp/Pure
ClosurePassAndRenameVarstest/com/google/javascript/jscomp/Rena
NormalizePassWrappertest/com/google/javascript/jscomp/Rena
TypeVerifyingPasstest/com/google/javascript/jscomp/Scop
VariableTestChecktest/com/google/javascript/jscomp/VarC
ProcessDefinesWithInjectedNamespacetest/com/google/javascript/jscomp/Proc
NormalizeAndDenormalizePasstest/com/google/javascript/jscomp/Deno
MarkNoSideEffectCallsAndRemoveUnusedCodeRunnertest/com/google/javascript/jscomp/Remo
ConvertToDottedPropertiessrc/com/google/javascript/jscomp/Conve
RewriteAsyncFunctionssrc/com/google/javascript/jscomp/Rewri
J2clPropertyInlinerPasssrc/com/google/javascript/jscomp/J2clP
InlineVariablessrc/com/google/javascript/jscomp/Inlin

Calls

no outgoing calls

Tested by

no test coverage detected