Uses of Class
com.google.javascript.jscomp.JSChunk
Packages that use JSChunk
-
Uses of JSChunk in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return JSChunkModifier and TypeMethodDescriptionCompilerInput.getChunk()
Returns the chunk to which the input belongs.JSChunkGraph.ChunkDependenceException.getChunk()
@Nullable JSChunk
NodeTraversal.getChunk()
Gets the current input chunk.JSChunkGraph.getDeepestCommonDependencyInclusive
(JSChunk m1, JSChunk m2) Finds the deepest common dependency of two chunks, including the chunks themselves.JSChunkGraph.getDeepestCommonDependencyInclusive
(Collection<JSChunk> chunks) Returns the deepest common dependency of the given chunks.JSChunkGraph.ChunkDependenceException.getDependentChunk()
JSChunkGraph.getSmallestCoveringSubtree
(JSChunk parentTree, 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 JSChunkModifier and TypeMethodDescriptionAbstractCommandLineRunner.createJsChunks
(List<AbstractCommandLineRunner.JsChunkSpec> specs, List<CompilerInput> inputs) Creates chunk objects from a list of chunk specifications.JSChunk.getAllDependencies()
Returns the transitive closure of dependencies starting from the dependencies of this chunk.Compiler.getChunks()
Gets the JS source modules in dependency order.com.google.common.collect.ImmutableList
<JSChunk> JSChunk.getDependencies()
Gets the list of chunks that this chunk depends on.JSChunk.getThisAndAllDependencies()
Returns this chunk and all of its dependencies in one list.Methods in com.google.javascript.jscomp with parameters of type JSChunkModifier and TypeMethodDescriptionvoid
JSChunk.addDependency
(JSChunk dep) Adds a dependency on another chunk.boolean
Determines whether this chunk depends on a given chunk.JSChunkGraph.getDeepestCommonDependencyInclusive
(JSChunk m1, JSChunk m2) Finds the deepest common dependency of two chunks, including the chunks themselves.protected Node
Compiler.getNodeForCodeInsertion
(@Nullable JSChunk chunk) JSChunkGraph.getSmallestCoveringSubtree
(JSChunk parentTree, 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
Sets the chunk to which the input belongs.void
Compiler.ChunkGraphAwareLicenseTracker.setCurrentChunkContext
(JSChunk chunk) Compiler.toSource
(CodePrinter.LicenseTracker licenseTracker, JSChunk chunk) Converts the parse tree for a chunk back to JS code, using the given License Tracker to determine which licenses should be emitted before the source code.Converts the parse tree for a chunk back to JS code.String[]
Compiler.toSourceArray
(CodePrinter.LicenseTracker licenseTracker, JSChunk chunk) Converts the parse tree for each input in a module back to JS code, using the given License Tracker implementation to decide which licenses should be emitted before each input file.Method parameters in com.google.javascript.jscomp with type arguments of type JSChunkModifier and TypeMethodDescriptionJSChunkGraph.getDeepestCommonDependencyInclusive
(Collection<JSChunk> chunks) Returns the deepest common dependency of the given chunks.AbstractCommandLineRunner.parseModuleWrappers
(List<String> specs, Iterable<JSChunk> chunks) Parses module wrapper specifications.Constructors in com.google.javascript.jscomp with parameters of type JSChunkModifierConstructorDescriptionprotected
ChunkDependenceException
(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 JSChunkModifierConstructorDescriptionJSChunkGraph
(List<JSChunk> chunksInDepOrder) Creates a chunk graph from a list of chunks in dependency order.