Class ConvertTypesToColors
java.lang.Object
com.google.javascript.jscomp.serialization.ConvertTypesToColors
- All Implemented Interfaces:
CompilerPass
Pass to convert JSType objects from TypeChecking that are attached to the AST into Color objects
whose sole use is to enable running optimizations and delete all other references to JSTypes.
This pass is also responsible for logging debug information that needs to know about both JSType objects and their corresponding colors, and for telling the compiler to prepare for reading runtime libraries from precompiled TypedASTs instead of source.
-
Constructor Summary
ConstructorsConstructorDescriptionConvertTypesToColors(AbstractCompiler compiler, SerializationOptions serializationOptions) -
Method Summary
-
Constructor Details
-
ConvertTypesToColors
-
-
Method Details
-
process
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
-