Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.deps |
Analyzes information about dependencies between files.
|
Modifier and Type | Class and Description |
---|---|
class |
CompilerInput
A class for the internal representation of an input to the compiler.
|
class |
JSModule
A JavaScript module has a unique name, consists of a list of compiler inputs,
and can depend on other modules.
|
class |
LazyParsedDependencyInfo
A DependencyInfo class that determines load flags by parsing the AST just-in-time.
|
Constructor and Description |
---|
LazyParsedDependencyInfo(DependencyInfo delegate,
JsAst ast,
AbstractCompiler compiler) |
Modifier and Type | Class and Description |
---|---|
class |
Es6SortedDependencies<INPUT extends DependencyInfo>
A sorted list of inputs following the ES6 module ordering spec.
|
interface |
SortedDependencies<INPUT extends DependencyInfo>
A sorted list of inputs with dependency information.
|
Modifier and Type | Class and Description |
---|---|
static class |
DependencyInfo.Base
Abstract base implementation that defines derived accessors such
as
DependencyInfo.Base.isModule() . |
class |
SimpleDependencyInfo
A class to hold JS dependency information for a single .js file.
|
Modifier and Type | Method and Description |
---|---|
DependencyInfo |
DependencyFile.getDependencyInfo(String symbol)
Gets the dependency info for the provided symbol, if contained in this
dependency file.
|
DependencyInfo |
JsFileParser.parseFile(String filePath,
String closureRelativePath,
String fileContents)
Parses the given file and returns the dependency information that it
contained.
|
Modifier and Type | Method and Description |
---|---|
List<DependencyInfo> |
DepsFileParser.parseFile(String filePath)
Parses the given file and returns a list of dependency information that it
contained.
|
List<DependencyInfo> |
DepsFileParser.parseFile(String filePath,
String fileContents)
Parses the given file and returns a list of dependency information that it
contained.
|
List<DependencyInfo> |
DepsFileParser.parseFileReader(String filePath,
Reader reader)
Parses the file from the given reader and returns a list of
dependency information that it contained.
|
Modifier and Type | Method and Description |
---|---|
static void |
ClosureBundler.appendInput(Appendable out,
DependencyInfo info,
String contents)
Append the contents of the string to the supplied appendable.
|
void |
ClosureBundler.appendTo(Appendable out,
DependencyInfo info,
com.google.common.io.CharSource content)
Append the contents of the CharSource to the supplied appendable.
|
void |
TranspilingClosureBundler.appendTo(Appendable out,
DependencyInfo info,
com.google.common.io.CharSource content) |
void |
ClosureBundler.appendTo(Appendable out,
DependencyInfo info,
File content,
Charset contentCharset)
Append the contents of the file to the supplied appendable.
|
void |
ClosureBundler.appendTo(Appendable out,
DependencyInfo info,
String content)
Append the contents of the string to the supplied appendable.
|
static void |
DependencyInfo.Util.writeAddDependency(Appendable out,
DependencyInfo info)
Prints a goog.addDependency call for a single DependencyInfo.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DepsGenerator.cleanUpDuplicatedFiles(Map<String,DependencyInfo> depsFiles,
Map<String,DependencyInfo> jsFiles)
Removes duplicated depsInfo from jsFiles if this info already present in
some of the parsed deps.js
|
protected void |
DepsGenerator.cleanUpDuplicatedFiles(Map<String,DependencyInfo> depsFiles,
Map<String,DependencyInfo> jsFiles)
Removes duplicated depsInfo from jsFiles if this info already present in
some of the parsed deps.js
|
Constructor and Description |
---|
ModuleLoader(ErrorHandler errorHandler,
Iterable<String> moduleRoots,
Iterable<? extends DependencyInfo> inputs) |
ModuleLoader(ErrorHandler errorHandler,
Iterable<String> moduleRoots,
Iterable<? extends DependencyInfo> inputs,
ModuleLoader.PathResolver pathResolver)
Creates an instance of the module loader which can be used to locate ES6 and CommonJS modules.
|
Copyright © 2009-2016 Google. All Rights Reserved.