public class ModuleMapCreator extends java.lang.Object implements HotSwapCompilerPass
ModuleMap.| Modifier and Type | Field and Description |
|---|---|
static DiagnosticType |
DOES_NOT_HAVE_EXPORT |
static DiagnosticType |
DOES_NOT_HAVE_EXPORT_WITH_DETAILS |
static DiagnosticType |
MISSING_NAMESPACE_IMPORT |
| Constructor and Description |
|---|
ModuleMapCreator(AbstractCompiler compiler,
ModuleMetadataMap moduleMetadataMap) |
| 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.
|
public static final DiagnosticType MISSING_NAMESPACE_IMPORT
public static final DiagnosticType DOES_NOT_HAVE_EXPORT
public static final DiagnosticType DOES_NOT_HAVE_EXPORT_WITH_DETAILS
public ModuleMapCreator(AbstractCompiler compiler, ModuleMetadataMap moduleMetadataMap)
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.Copyright © 2009-2020 Google. All Rights Reserved.