class CheckProvides extends java.lang.Object implements HotSwapCompilerPass
| Modifier and Type | Class and Description |
|---|---|
private class |
CheckProvides.CheckProvidesCallback |
| Modifier and Type | Field and Description |
|---|---|
private CodingConvention |
codingConvention |
private AbstractCompiler |
compiler |
(package private) static DiagnosticType |
MISSING_PROVIDE_WARNING |
| Constructor and Description |
|---|
CheckProvides(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
hotSwapScript(Node scriptRoot,
Node originalRoot)
Process the JS with root node root.
|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
private final AbstractCompiler compiler
private final CodingConvention codingConvention
static final DiagnosticType MISSING_PROVIDE_WARNING
CheckProvides(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPassprocess in interface CompilerPassexterns - Top of external JS treeroot - Top of JS treepublic void hotSwapScript(Node scriptRoot, Node originalRoot)
HotSwapCompilerPasshotSwapScript in interface HotSwapCompilerPassscriptRoot - Root node corresponding to the file that is modified,
should be of type Token.SCRIPT.originalRoot - Root node corresponding to the original version of the
file that is modified. Should be of type token.SCRIPT.