Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Method and Description |
---|---|
CompilerInput |
JSModule.getByName(String name)
Returns the input with the given name or null if none.
|
CompilerInput |
NodeTraversal.getInput()
Gets the current input source.
|
CompilerInput |
Compiler.getInput(InputId id) |
abstract CompilerInput |
AbstractCompiler.getInput(InputId inputId)
Looks up an input (possibly an externs input) by input id.
|
Modifier and Type | Method and Description |
---|---|
List<CompilerInput> |
JSModule.getInputs()
Gets this module's list of source code inputs.
|
Map<InputId,CompilerInput> |
Compiler.getInputsById()
Returns an unmodifiable view of the compiler inputs indexed by id.
|
List<CompilerInput> |
JSModuleGraph.manageDependencies(DependencyOptions depOptions,
List<CompilerInput> inputs)
Apply the dependency options to the list of sources, returning a new
source list re-ordering and dropping files as necessary.
|
List<CompilerInput> |
JSModuleGraph.manageDependencies(List<ModuleIdentifier> entryPoints,
List<CompilerInput> inputs)
Applies a DependencyOptions in "dependency sorting" and "dependency pruning"
mode to the given list of inputs.
|
Modifier and Type | Method and Description |
---|---|
void |
JSModule.add(CompilerInput input)
Adds a source code input to this module.
|
void |
JSModule.addAfter(CompilerInput input,
CompilerInput other)
Adds a source code input to this module directly after other.
|
void |
JSModule.remove(CompilerInput input)
Removes an input from this module.
|
Modifier and Type | Method and Description |
---|---|
List<CompilerInput> |
JSModuleGraph.manageDependencies(DependencyOptions depOptions,
List<CompilerInput> inputs)
Apply the dependency options to the list of sources, returning a new
source list re-ordering and dropping files as necessary.
|
List<CompilerInput> |
JSModuleGraph.manageDependencies(List<ModuleIdentifier> entryPoints,
List<CompilerInput> inputs)
Applies a DependencyOptions in "dependency sorting" and "dependency pruning"
mode to the given list of inputs.
|
Constructor and Description |
---|
ES6ModuleLoader(AbstractCompiler compiler,
List<String> moduleRoots,
Iterable<CompilerInput> inputs)
Creates an instance of the module loader which can be used to locate ES6 and CommonJS modules.
|
Copyright © 2009-2016 Google. All Rights Reserved.