Package com.google.javascript.jscomp
Class GatherModuleMetadata
java.lang.Object
com.google.javascript.jscomp.GatherModuleMetadata
- All Implemented Interfaces:
CompilerPass
Gathers metadata around modules that is useful for checking imports / requires and creates a
ModuleMetadataMap
.-
Constructor Summary
ConstructorsConstructorDescriptionGatherModuleMetadata
(AbstractCompiler compiler, boolean processCommonJsModules, ModuleLoader.ResolutionMode moduleResolutionMode) -
Method Summary
-
Constructor Details
-
GatherModuleMetadata
public GatherModuleMetadata(AbstractCompiler compiler, boolean processCommonJsModules, ModuleLoader.ResolutionMode moduleResolutionMode)
-
-
Method Details
-
process
Description copied from interface:CompilerPass
Process the JS with root node root. Can modify the contents of each Node tree- Specified by:
process
in interfaceCompilerPass
- Parameters:
externs
- Top of external JS treeroot
- Top of JS tree
-