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.
|
com.google.javascript.rhino.testing |
Modifier and Type | Class and Description |
---|---|
private static class |
RhinoErrorReporter.OldRhinoErrorReporter |
Modifier and Type | Field and Description |
---|---|
private ErrorReporter |
Compiler.defaultErrorReporter |
private ErrorReporter |
Compiler.oldErrorReporter |
private ErrorReporter |
TypedScopeCreator.typeParsingErrorReporter |
Modifier and Type | Method and Description |
---|---|
static ErrorReporter |
RhinoErrorReporter.forOldRhino(AbstractCompiler compiler) |
(package private) abstract ErrorReporter |
AbstractCompiler.getDefaultErrorReporter()
Gets a default error reporter for injecting into Rhino.
|
(package private) ErrorReporter |
Compiler.getDefaultErrorReporter() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
TypedVar.resolveType(ErrorReporter errorReporter) |
Modifier and Type | Class and Description |
---|---|
private static class |
NullErrorReporter.OldRhinoNullReporter |
Modifier and Type | Field and Description |
---|---|
private ErrorReporter |
IRFactory.errorReporter |
private ErrorReporter |
JsDocInfoParser.errorReporter |
private ErrorReporter |
TypeTransformationParser.errorReporter |
(package private) static ErrorReporter |
IRFactory.NULL_REPORTER |
private ErrorReporter |
ParserRunner.Es6ErrorReporter.reporter |
Modifier and Type | Method and Description |
---|---|
static ErrorReporter |
NullErrorReporter.forOldRhino() |
Modifier and Type | Method and Description |
---|---|
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 |
---|
Es6ErrorReporter(ErrorReporter reporter,
boolean reportAllErrors) |
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 |
SimpleErrorReporter
A simple
ErrorReporter that collects warnings and errors and makes
them accessible via SimpleErrorReporter.errors and SimpleErrorReporter.warnings . |
Modifier and Type | Field and Description |
---|---|
private ErrorReporter |
JSTypeRegistry.reporter |
Modifier and Type | Method and Description |
---|---|
ErrorReporter |
JSTypeRegistry.getErrorReporter() |
Modifier and Type | Method and Description |
---|---|
private void |
NamedType.checkEnumElementCycle(ErrorReporter t) |
private void |
NamedType.checkProtoCycle(ErrorReporter t) |
private JSType |
NamedType.getTypedefType(ErrorReporter t,
StaticTypedSlot<JSType> slot) |
private void |
NamedType.handleTypeCycle(ErrorReporter t) |
private void |
NamedType.handleUnresolvedType(ErrorReporter t,
boolean ignoreForwardReferencedTypes) |
private JSType |
NamedType.lookupViaProperties(ErrorReporter reporter,
StaticTypedScope<JSType> enclosing)
Resolves a type by looking up its first component in the scope, and
subsequent components as properties.
|
JSType |
JSType.resolve(ErrorReporter t,
StaticTypedScope<JSType> scope)
Resolve this type in the given scope.
|
(package private) JSType |
AllType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
ArrowType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
EnumElementType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
EnumType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
FunctionType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) abstract JSType |
JSType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
NamedType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> enclosing)
Resolve the referenced type within the enclosing scope.
|
(package private) JSType |
NamespaceType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> enclosing)
Resolve the referenced type within the enclosing scope.
|
(package private) JSType |
NoObjectType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
PrototypeObjectType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
ProxyObjectType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
UnionType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
UnknownType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
(package private) JSType |
ValueType.resolveInternal(ErrorReporter t,
StaticTypedScope<JSType> scope) |
private com.google.common.collect.ImmutableList<ObjectType> |
FunctionType.resolveTypeListHelper(com.google.common.collect.ImmutableList<ObjectType> list,
ErrorReporter t,
StaticTypedScope<JSType> scope)
Resolve each item in the list, and return a new list if any
references changed.
|
private void |
NamedType.resolveViaProperties(ErrorReporter reporter,
StaticTypedScope<JSType> enclosing)
Resolves a named type by looking up its first component in the scope, and
subsequent components as properties.
|
private boolean |
NamedType.resolveViaRegistry(ErrorReporter reporter)
Resolves a named type by looking it up in the registry.
|
(package private) static JSType |
JSType.safeResolve(JSType type,
ErrorReporter t,
StaticTypedScope<JSType> scope)
A null-safe resolve.
|
private void |
NamedType.setReferencedAndResolvedType(JSType type,
ErrorReporter reporter) |
(package private) void |
NamedType.warning(ErrorReporter reporter,
java.lang.String message) |
Constructor and Description |
---|
JSTypeRegistry(ErrorReporter reporter)
Constructs a new type registry populated with the built-in types.
|
Modifier and Type | Class and Description |
---|---|
class |
TestErrorReporter
An error reporter for testing that verifies that messages reported to the
reporter are expected.
|