Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.type |
Provides type-checking data structures and algorithms.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Class and Description |
---|---|
private class |
GatherExternProperties.ExtractRecordTypePropertyNames |
private static class |
TypeInference.TemplateTypeReplacer |
Modifier and Type | Class and Description |
---|---|
(package private) class |
ChainableReverseAbstractInterpreter.RestrictByFalseTypeOfResultVisitor
A class common to all visitors that need to restrict the type based on
some
typeof -like condition being false. |
private class |
ChainableReverseAbstractInterpreter.RestrictByOneTypeOfResultVisitor |
(package private) class |
ChainableReverseAbstractInterpreter.RestrictByTrueTypeOfResultVisitor
A class common to all visitors that need to restrict the type based on
some
typeof -like condition being true. |
(package private) class |
ChainableReverseAbstractInterpreter.RestrictByTypeOfResultVisitor
A class common to all visitors that need to restrict the type based on
typeof -like conditions. |
private class |
SemanticReverseAbstractInterpreter.RestrictByFalseInstanceOfResultVisitor |
private class |
SemanticReverseAbstractInterpreter.RestrictByTrueInstanceOfResultVisitor |
Modifier and Type | Field and Description |
---|---|
private Visitor<JSType> |
ChainableReverseAbstractInterpreter.restrictNullVisitor |
(package private) Visitor<JSType> |
ChainableReverseAbstractInterpreter.restrictToArrayVisitor
For when
goog.isArray or Array.isArray returns true. |
(package private) Visitor<JSType> |
ChainableReverseAbstractInterpreter.restrictToNotArrayVisitor
For when
goog.isArray or Array.isArray returns false. |
private Visitor<JSType> |
ClosureReverseAbstractInterpreter.restrictToNotObjectVisitor
For when
goog.isObject returns false. |
private Visitor<JSType> |
ClosureReverseAbstractInterpreter.restrictToObjectVisitor
For when
goog.isObject returns true. |
private Visitor<JSType> |
ChainableReverseAbstractInterpreter.restrictUndefinedVisitor |
Modifier and Type | Class and Description |
---|---|
class |
ModificationVisitor
A visitor implementation that enables type substitutions.
|
class |
TemplateTypeMapReplacer
Uses a TemplateTypeMap to replace TemplateTypes with their associated JSType
values.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
AllType.visit(Visitor<T> visitor) |
<T> T |
ArrowType.visit(Visitor<T> visitor) |
<T> T |
BooleanType.visit(Visitor<T> visitor) |
<T> T |
EnumElementType.visit(Visitor<T> visitor) |
<T> T |
EnumType.visit(Visitor<T> visitor) |
<T> T |
FunctionType.visit(Visitor<T> visitor) |
abstract <T> T |
JSType.visit(Visitor<T> visitor)
Visit this type with the given visitor.
|
<T> T |
NamedType.visit(Visitor<T> visitor) |
<T> T |
NoObjectType.visit(Visitor<T> visitor) |
<T> T |
NoType.visit(Visitor<T> visitor) |
<T> T |
NullType.visit(Visitor<T> visitor) |
<T> T |
NumberType.visit(Visitor<T> visitor) |
<T> T |
ObjectType.visit(Visitor<T> visitor) |
<T> T |
ProxyObjectType.visit(Visitor<T> visitor) |
<T> T |
StringType.visit(Visitor<T> visitor) |
<T> T |
TemplateType.visit(Visitor<T> visitor) |
<T> T |
TemplatizedType.visit(Visitor<T> visitor) |
<T> T |
UnionType.visit(Visitor<T> visitor) |
<T> T |
UnknownType.visit(Visitor<T> visitor) |
<T> T |
VoidType.visit(Visitor<T> visitor) |
<T> T |
ProxyObjectType.visitReferenceType(Visitor<T> visitor) |