Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.parsing |
Provides utilities to help with parsing JSDoc annotations and performing AST
transformations.
|
com.google.javascript.rhino |
The core AST from Rhino.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Class and Description |
---|---|
class |
SourceFile
An abstract representation of a source file that provides access to
language-neutral features.
|
(package private) static class |
SourceFile.AtUrl
A source file at a URL where the code is only read into memory if absolutely
necessary.
|
(package private) static class |
SourceFile.Generated
A source file where the code will be dynamically generated
from the injected interface.
|
(package private) static class |
SourceFile.OnDisk
A source file where the code is only read into memory if absolutely
necessary.
|
(package private) static class |
SourceFile.Preloaded
A source file where the code has been preloaded.
|
Modifier and Type | Field and Description |
---|---|
(package private) StaticSourceFile |
GlobalNamespace.Ref.source |
private StaticSourceFile |
ReferenceCollectingCallback.Reference.sourceFile |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableMap.Builder<StaticSourceFile,JSDocInfo.Visibility> |
CollectFileOverviewVisibility.builder |
private com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> |
CheckAccessControls.defaultVisibilityForFiles |
private com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> |
SymbolTable.VisibilityCollector.fileVisibilityMap |
Modifier and Type | Method and Description |
---|---|
private static StaticSourceFile |
AccessControlUtils.getDefiningSource(Node getprop,
ObjectType referenceType,
java.lang.String propertyName)
Returns the source file in which the given property is defined,
or null if it is not known.
|
private static StaticSourceFile |
CheckAccessControls.getDefiningSource(Node getprop,
ObjectType referenceType,
java.lang.String propertyName) |
StaticSourceFile |
TypedVar.getSourceFile() |
StaticSourceFile |
Var.getSourceFile() |
StaticSourceFile |
Var.Arguments.getSourceFile() |
StaticSourceFile |
ReferenceCollectingCallback.Reference.getSourceFile() |
StaticSourceFile |
GlobalNamespace.Ref.getSourceFile() |
static StaticSourceFile |
NodeUtil.getSourceFile(Node n) |
Modifier and Type | Method and Description |
---|---|
(package private) com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> |
CollectFileOverviewVisibility.getFileOverviewVisibilityMap() |
Modifier and Type | Method and Description |
---|---|
private void |
CheckAccessControls.checkNonOverriddenPropertyVisibility(NodeTraversal t,
Node getprop,
Node parent,
JSDocInfo.Visibility visibility,
boolean isClassType,
JSType objectType,
StaticSourceFile referenceSource,
StaticSourceFile definingSource) |
private void |
CheckAccessControls.checkPackagePropertyVisibility(NodeTraversal t,
Node getprop,
StaticSourceFile referenceSource,
StaticSourceFile definingSource) |
java.lang.String |
CodingConventions.Proxy.getPackageName(StaticSourceFile source) |
java.lang.String |
CodingConventions.DefaultCodingConvention.getPackageName(StaticSourceFile source) |
java.lang.String |
GoogleCodingConvention.getPackageName(StaticSourceFile source) |
java.lang.String |
CodingConvention.getPackageName(StaticSourceFile source) |
Modifier and Type | Method and Description |
---|---|
(package private) static JSDocInfo.Visibility |
AccessControlUtils.getEffectiveNameVisibility(Node name,
Var var,
com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> fileVisibilityMap)
Returns the effective visibility of the given name.
|
(package private) static JSDocInfo.Visibility |
AccessControlUtils.getEffectivePropertyVisibility(Node property,
ObjectType referenceType,
com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> fileVisibilityMap,
CodingConvention codingConvention)
Returns the effective visibility of the given property.
|
Constructor and Description |
---|
VisibilityCollector(com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> fileVisibilityMap,
CodingConvention codingConvention) |
Modifier and Type | Field and Description |
---|---|
private StaticSourceFile |
JsDocInfoParser.sourceFile |
private StaticSourceFile |
IRFactory.sourceFile |
private StaticSourceFile |
TypeTransformationParser.sourceFile |
Modifier and Type | Method and Description |
---|---|
(package private) static FeatureSet |
IRFactory.detectFeatures(ProgramTree tree,
StaticSourceFile sourceFile,
java.lang.String sourceString) |
static ParserRunner.ParseResult |
ParserRunner.parse(StaticSourceFile sourceFile,
java.lang.String sourceString,
Config config,
ErrorReporter errorReporter) |
static IRFactory |
IRFactory.transformTree(ProgramTree tree,
StaticSourceFile sourceFile,
java.lang.String sourceString,
Config config,
ErrorReporter errorReporter) |
Constructor and Description |
---|
IRFactory(java.lang.String sourceString,
StaticSourceFile sourceFile,
Config config,
ErrorReporter errorReporter,
com.google.common.collect.ImmutableList<Comment> comments) |
JsDocInfoParser(JsDocTokenStream stream,
java.lang.String comment,
int commentPosition,
StaticSourceFile sourceFile,
Config config,
ErrorReporter errorReporter) |
TypeTransformationParser(java.lang.String typeTransformationString,
StaticSourceFile sourceFile,
ErrorReporter errorReporter,
int templateLineno,
int templateCharno) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleSourceFile
A simple implementation of
StaticSourceFile for testing. |
Modifier and Type | Method and Description |
---|---|
StaticSourceFile |
StaticRef.getSourceFile()
The source file where the reference lives.
|
StaticSourceFile |
Node.getStaticSourceFile()
Returns the source file associated with this input.
|
Modifier and Type | Method and Description |
---|---|
void |
JSDocInfoBuilder.markName(java.lang.String name,
StaticSourceFile file,
int lineno,
int charno)
Adds a name declaration to the current marker.
|
void |
Node.setStaticSourceFile(StaticSourceFile file) |
Modifier and Type | Method and Description |
---|---|
StaticSourceFile |
SimpleReference.getSourceFile() |
StaticSourceFile |
Property.getSourceFile() |