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.
|
java.net |
Modifier and Type | Field and Description |
---|---|
private java.util.List<URI> |
ES6ModuleLoader.moduleRootUris
The root URIs that modules are resolved against.
|
private java.util.Set<URI> |
ES6ModuleLoader.moduleUris
The set of all known input module URIs (including trailing .js), after normalization.
|
Modifier and Type | Method and Description |
---|---|
private static URI |
ES6ModuleLoader.createUri(java.lang.String input) |
private URI |
ES6ModuleLoader.locate(java.lang.String name,
CompilerInput referrer) |
(package private) URI |
ES6ModuleLoader.locateCommonJsModule(java.lang.String requireName,
CompilerInput context)
Find a CommonJS module
requireName relative to context . |
(package private) URI |
ES6ModuleLoader.locateEs6Module(java.lang.String moduleName,
CompilerInput context)
Find an ES6 module
moduleName relative to context . |
private URI |
ES6ModuleLoader.normalizeAddress(URI uri)
Normalizes the URI for the given
uri by resolving it against the known
ES6ModuleLoader.moduleRootUris . |
(package private) URI |
ES6ModuleLoader.normalizeInputAddress(CompilerInput input)
Normalizes the address of
input and resolves it against the module roots. |
Modifier and Type | Method and Description |
---|---|
private URI |
ES6ModuleLoader.normalizeAddress(URI uri)
Normalizes the URI for the given
uri by resolving it against the known
ES6ModuleLoader.moduleRootUris . |
static java.lang.String |
ES6ModuleLoader.toModuleName(URI filename)
Turns a filename into a JS identifier that is used for moduleNames in
rewritten code.
|
Modifier and Type | Method and Description |
---|---|
private static URI |
Es6SortedDependencies.createUri(java.lang.String input)
Copied from ES6ModuleLoader because our BUILD rules are written in such a way that we can't
depend on ES6ModuleLoader from here.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
Es6SortedDependencies.toModuleName(URI filename)
Turns a filename into a JS identifier that is used for moduleNames in
rewritten code.
|
Modifier and Type | Method and Description |
---|---|
static URI |
URI.create(java.lang.String str) |
URI |
URI.normalize() |
URI |
URI.relativize(URI uri) |
URI |
URI.resolve(URI uri) |
Modifier and Type | Method and Description |
---|---|
int |
URI.compareTo(URI o) |
URI |
URI.relativize(URI uri) |
URI |
URI.resolve(URI uri) |