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.refactoring | |
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 |
---|---|
protected JSTypeNative |
CodingConvention.AssertionFunctionSpec.assertedType |
Modifier and Type | Method and Description |
---|---|
private void |
TypedScopeCreator.declareNativeFunctionType(TypedScope scope,
JSTypeNative tId) |
private void |
TypedScopeCreator.declareNativeValueType(TypedScope scope,
java.lang.String name,
JSTypeNative tId) |
private void |
TypeCheck.ensureTyped(NodeTraversal t,
Node n,
JSTypeNative type) |
(package private) static JSType |
ConformanceRules.ConformanceUtil.getNativeType(AbstractCompiler compiler,
JSTypeNative typeId) |
private JSType |
TypedScopeCreator.getNativeType(JSTypeNative nativeType) |
private JSType |
TypeValidator.getNativeType(JSTypeNative typeId) |
private JSType |
TypeInference.getNativeType(JSTypeNative typeId) |
private JSType |
TypeCheck.getNativeType(JSTypeNative typeId) |
private void |
TypeValidator.mismatch(NodeTraversal t,
Node n,
java.lang.String msg,
JSType found,
JSTypeNative required) |
Constructor and Description |
---|
AssertionFunctionSpec(java.lang.String functionName,
JSType assertedNewType,
JSTypeNative assertedType) |
Modifier and Type | Method and Description |
---|---|
(package private) JSType |
ChainableReverseAbstractInterpreter.getNativeType(JSTypeNative typeId) |
Modifier and Type | Method and Description |
---|---|
private static JSType |
Matchers.getJsType(NodeMetadata metadata,
JSTypeNative nativeType) |
Modifier and Type | Method and Description |
---|---|
<T extends FunctionTypeI> |
TypeIRegistry.getNativeFunctionType(JSTypeNative typeId) |
<T extends ObjectTypeI> |
TypeIRegistry.getNativeObjectType(JSTypeNative typeId) |
<T extends TypeI> |
TypeIRegistry.getNativeType(JSTypeNative typeId) |
Modifier and Type | Method and Description |
---|---|
static JSTypeNative |
JSTypeNative.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSTypeNative[] |
JSTypeNative.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
JSType |
JSTypeRegistry.createUnionType(JSTypeNative... variants)
Creates a union type whose variants are the built-in types specified
by the arguments.
|
FunctionType |
JSTypeRegistry.getNativeFunctionType(JSTypeNative typeId) |
ObjectType |
JSTypeRegistry.getNativeObjectType(JSTypeNative typeId) |
(package private) JSType |
JSType.getNativeType(JSTypeNative typeId)
Utility method for less verbose code.
|
private JSType |
ModificationVisitor.getNativeType(JSTypeNative nativeType) |
JSType |
JSTypeRegistry.getNativeType(JSTypeNative typeId) |
private void |
JSTypeRegistry.registerNativeType(JSTypeNative typeId,
JSType type) |