Uses of Class
com.google.javascript.jscomp.JSChunk
-
Packages that use JSChunk Package Description com.google.javascript.jscomp -
-
Uses of JSChunk in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return JSChunk Modifier and Type Method Description JSChunk
CompilerInput. getChunk()
Returns the module to which the input belongs.JSChunk
JSChunkGraph.ChunkDependenceException. getChunk()
JSChunk
NodeTraversal. getChunk()
Gets the current input module.JSChunk
JSChunkGraph. getDeepestCommonDependencyInclusive(JSChunk m1, JSChunk m2)
Finds the deepest common dependency of two chunks, including the chunks themselves.JSChunk
JSChunkGraph. getDeepestCommonDependencyInclusive(java.util.Collection<JSChunk> chunks)
Returns the deepest common dependency of the given chunks.JSChunk
JSChunkGraph.ChunkDependenceException. getDependentChunk()
JSChunk
JSChunkGraph. getSmallestCoveringSubtree(JSChunk parentTree, java.util.BitSet dependentChunks)
Finds the chunk with the fewest transitive dependents on which all of the given chunks depend and that is a subtree of the given parent chunk tree.Methods in com.google.javascript.jscomp that return types with arguments of type JSChunk Modifier and Type Method Description static java.util.List<JSChunk>
AbstractCommandLineRunner. createJsModules(java.util.List<AbstractCommandLineRunner.JsChunkSpec> specs, java.util.List<CompilerInput> inputs)
Creates module objects from a list of chunk specifications.java.util.Set<JSChunk>
JSChunk. getAllDependencies()
Returns the transitive closure of dependencies starting from the dependencies of this chunk.com.google.common.collect.ImmutableList<JSChunk>
JSChunk. getDependencies()
Gets the list of chunks that this chunk depends on.java.lang.Iterable<JSChunk>
Compiler. getModules()
Gets the JS source modules in dependency order.java.util.Set<JSChunk>
JSChunk. getThisAndAllDependencies()
Returns this chunk and all of its dependencies in one list.Methods in com.google.javascript.jscomp with parameters of type JSChunk Modifier and Type Method Description void
JSChunk. addDependency(JSChunk dep)
Adds a dependency on another chunk.boolean
JSChunkGraph. dependsOn(JSChunk src, JSChunk m)
Determines whether this chunk depends on a given chunk.JSChunk
JSChunkGraph. getDeepestCommonDependencyInclusive(JSChunk m1, JSChunk m2)
Finds the deepest common dependency of two chunks, including the chunks themselves.protected Node
Compiler. getNodeForCodeInsertion(JSChunk module)
JSChunk
JSChunkGraph. getSmallestCoveringSubtree(JSChunk parentTree, java.util.BitSet dependentChunks)
Finds the chunk with the fewest transitive dependents on which all of the given chunks depend and that is a subtree of the given parent chunk tree.void
CompilerInput. setModule(JSChunk module)
Sets the module to which the input belongs.java.lang.String
Compiler. toSource(JSChunk module)
Converts the parse tree for a module back to JS code.java.lang.String[]
Compiler. toSourceArray(JSChunk module)
Converts the parse tree for each input in a module back to JS code.Method parameters in com.google.javascript.jscomp with type arguments of type JSChunk Modifier and Type Method Description JSChunk
JSChunkGraph. getDeepestCommonDependencyInclusive(java.util.Collection<JSChunk> chunks)
Returns the deepest common dependency of the given chunks.static java.util.Map<java.lang.String,java.lang.String>
AbstractCommandLineRunner. parseModuleWrappers(java.util.List<java.lang.String> specs, java.lang.Iterable<JSChunk> chunks)
Parses module wrapper specifications.Constructors in com.google.javascript.jscomp with parameters of type JSChunk Constructor Description ChunkDependenceException(java.lang.String message, JSChunk chunk, JSChunk dependentChunk)
JSChunkGraph(JSChunk[] chunksInDepOrder)
Creates a chunk graph from a list of chunks in dependency order.Constructor parameters in com.google.javascript.jscomp with type arguments of type JSChunk Constructor Description JSChunkGraph(java.util.List<JSChunk> chunksInDepOrder)
Creates a chunk graph from a list of chunks in dependency order.
-