Package com.google.javascript.jscomp
Class GatherModuleMetadata
- java.lang.Object
-
- com.google.javascript.jscomp.GatherModuleMetadata
-
- All Implemented Interfaces:
CompilerPass
public final class GatherModuleMetadata extends java.lang.Object implements CompilerPass
Gathers metadata around modules that is useful for checking imports / requires and creates aModuleMetadataMap.
-
-
Constructor Summary
Constructors Constructor Description GatherModuleMetadata(AbstractCompiler compiler, boolean processCommonJsModules, ModuleLoader.ResolutionMode moduleResolutionMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(Node externs, Node root)Process the JS with root node root.
-
-
-
Constructor Detail
-
GatherModuleMetadata
public GatherModuleMetadata(AbstractCompiler compiler, boolean processCommonJsModules, ModuleLoader.ResolutionMode moduleResolutionMode)
-
-
Method Detail
-
process
public void process(Node externs, Node root)
Description copied from interface:CompilerPassProcess the JS with root node root. Can modify the contents of each Node tree- Specified by:
processin interfaceCompilerPass- Parameters:
externs- Top of external JS treeroot- Top of JS tree
-
-