Class TypedAstDeserializer.DeserializedAst

java.lang.Object
com.google.javascript.jscomp.serialization.TypedAstDeserializer.DeserializedAst
Enclosing class:
TypedAstDeserializer

public abstract static class TypedAstDeserializer.DeserializedAst extends Object
The result of deserializing a TypedAst.List
  • Constructor Details

    • DeserializedAst

      public DeserializedAst()
  • Method Details

    • getFilesystem

      public abstract ConcurrentMap<SourceFile,Supplier<Node>> getFilesystem()
      Maps from SourceFile to a lazy deserializer of the SCRIPT node for that file

      The supplier creates a new Node whenever called (but the results should be .equals)

    • getColorRegistry

      public abstract com.google.common.base.Optional<ColorRegistry> getColorRegistry()
      The built ColorRegistry.

      Note that this is absent if either a)

      invalid reference
      TypedAstDeserializer#deserializeRuntimeLibraries(AbstractCompiler, SourceFile, ColorPool.Builder, InputStream)
      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.
    • getExternProperties

      public abstract @Nullable com.google.common.collect.ImmutableSet<String> 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

      public abstract com.google.common.collect.ImmutableSet<String> getRuntimeLibraries()