Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.newtypes | |
com.google.javascript.rhino |
The core AST from Rhino.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Field and Description |
---|---|
private TypeI |
ReplaceCssNames.nativeStringType |
Modifier and Type | Method and Description |
---|---|
TypeI |
GlobalNamespace.Name.getType() |
TypeI |
GlobalNamespace.getTypeOfThis() |
Modifier and Type | Method and Description |
---|---|
StaticTypedScope<TypeI> |
GlobalNamespace.getParentScope() |
StaticTypedScope<TypeI> |
GlobalNamespace.getScope(GlobalNamespace.Name slot) |
StaticTypedSlot<TypeI> |
GlobalNamespace.Ref.getSymbol() |
Modifier and Type | Method and Description |
---|---|
private ReplaceStrings.Config |
ReplaceStrings.findMatchingClass(TypeI callClassType,
java.util.Collection<java.lang.String> declarationNames) |
Modifier and Type | Class and Description |
---|---|
class |
JSType |
(package private) class |
MaskType |
(package private) class |
NullableObjsType |
(package private) class |
ObjsType |
(package private) class |
UnionType |
Modifier and Type | Method and Description |
---|---|
TypeI |
JSType.restrictByNotNullOrUndefined() |
Modifier and Type | Method and Description |
---|---|
boolean |
JSType.isEquivalentTo(TypeI type) |
boolean |
JSType.isSubtypeOf(TypeI other) |
(package private) boolean |
JSType.isSubtypeOf(TypeI other,
SubtypeCache subSuperMap) |
Modifier and Type | Interface and Description |
---|---|
interface |
FunctionTypeI |
interface |
ObjectTypeI |
Modifier and Type | Field and Description |
---|---|
private TypeI |
Node.typei |
Modifier and Type | Method and Description |
---|---|
<T extends TypeI> |
TypeIRegistry.getNativeType(JSTypeNative typeId) |
<T extends TypeI> |
TypeIRegistry.getType(java.lang.String typeName) |
Modifier and Type | Method and Description |
---|---|
TypeI |
FunctionTypeI.convertMethodToFunction()
Creates a new function type B based on the original function type A.
|
TypeI |
TypeIRegistry.createTypeFromCommentNode(Node n,
java.lang.String sourceName,
StaticTypedScope<? extends TypeI> scope) |
TypeI |
JSTypeExpression.evaluateInEmptyScope(TypeIRegistry registry) |
TypeI |
Node.getTypeI() |
TypeI |
FunctionTypeI.getTypeOfThis() |
TypeI |
TypeI.restrictByNotNullOrUndefined() |
Modifier and Type | Method and Description |
---|---|
boolean |
TypeI.isEquivalentTo(TypeI type) |
boolean |
TypeI.isSubtypeOf(TypeI type) |
void |
Node.setTypeI(TypeI type) |
Modifier and Type | Method and Description |
---|---|
TypeI |
TypeIRegistry.createTypeFromCommentNode(Node n,
java.lang.String sourceName,
StaticTypedScope<? extends TypeI> scope) |
Modifier and Type | Class and Description |
---|---|
class |
AllType
All type, representing all values.
|
(package private) class |
ArrowType
The arrow type is an internal type that models the functional arrow type
seen in typical functional programming languages.
|
class |
BooleanType
Boolean type.
|
class |
EnumElementType
The type of individual elements of an enum type
(see
EnumType ). |
class |
EnumType
An enum type representing a branded collection of elements.
|
(package private) class |
ErrorFunctionType
This type is for built-in error constructors.
|
class |
FunctionType
This derived type provides extended information about a function, including
its return type and argument types.
|
(package private) class |
InstanceObjectType
An object type that is an instance of some function constructor.
|
class |
NamedType
A
NamedType is a named reference to some other type. |
(package private) class |
NamespaceType
A namespace type is a reference to a particular object.
|
class |
NoObjectType
The bottom Object type, representing the subclass of all objects.
|
(package private) class |
NoResolvedType
An unresolved type that was forward declared.
|
class |
NoType
Bottom type, representing the subclass of any value or object.
|
class |
NullType
Null type.
|
class |
NumberType
Number type.
|
class |
ObjectType
Object type.
|
class |
PrototypeObjectType
The object type represents instances of JavaScript objects such as
Object , Date , Function . |
class |
ProxyObjectType
An object type which uses composition to delegate all calls.
|
class |
RecordType
A record (structural) type.
|
class |
StringType
String type.
|
class |
TemplateType |
class |
TemplatizedType
An object type with declared template types, such as
Array<string> . |
class |
UnknownType
The
Unknown type. |
(package private) class |
ValueType
Value types (null, void, number, boolean, string).
|
class |
VoidType
Void type whose only element is the
undefined value. |
Modifier and Type | Method and Description |
---|---|
TypeI |
FunctionType.convertMethodToFunction() |
Modifier and Type | Method and Description |
---|---|
boolean |
JSType.isEquivalentTo(TypeI that)
Checks if two types are equivalent.
|
boolean |
JSType.isEquivalentTo(TypeI that,
boolean isStructural) |
boolean |
JSType.isSubtypeOf(TypeI other) |
Modifier and Type | Method and Description |
---|---|
JSType |
JSTypeRegistry.createTypeFromCommentNode(Node n,
java.lang.String sourceName,
StaticTypedScope<? extends TypeI> scope)
Creates a JSType from the nodes representing a type.
|