Class TypedAstDeserializer.DeserializedAst
java.lang.Object
com.google.javascript.jscomp.serialization.TypedAstDeserializer.DeserializedAst
- Enclosing class:
TypedAstDeserializer
The result of deserializing a TypedAst.List
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract com.google.common.base.Optional<ColorRegistry> The built ColorRegistry.abstract @Nullable com.google.common.collect.ImmutableSet<String> Returns a list of all known extern properties, including properties that were present in type annotations in source code but not serialized on the ASTabstract ConcurrentMap<SourceFile, Supplier<Node>> Maps from SourceFile to a lazy deserializer of the SCRIPT node for that fileabstract com.google.common.collect.ImmutableSet<String>
-
Constructor Details
-
DeserializedAst
public DeserializedAst()
-
-
Method Details
-
getFilesystem
Maps from SourceFile to a lazy deserializer of the SCRIPT node for that fileThe supplier creates a new Node whenever called (but the results should be .equals)
-
getColorRegistry
The built ColorRegistry.Note that this is absent if either a)
was called, as this sort of deserialization does not build a complete AST + colors, just a shard of it, or b) type information was not requested.invalid reference
TypedAstDeserializer#deserializeRuntimeLibraries(AbstractCompiler, SourceFile, ColorPool.Builder, InputStream) -
getExternProperties
Returns a list of all known extern properties, including properties that were present in type annotations in source code but not serialized on the AST -
getRuntimeLibraries
-