| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| com.google.javascript.jscomp.newtypes |
| Modifier and Type | Field and Description |
|---|---|
protected JSType |
CodingConvention.AssertionFunctionSpec.assertedNewType |
| Modifier and Type | Method and Description |
|---|---|
JSType |
ClosureCodingConvention.AssertInstanceofSpec.getAssertedNewType(Node call,
DeclaredTypeRegistry scope) |
JSType |
ClosureCodingConvention.AssertFunctionByTypeName.getAssertedNewType(Node call,
DeclaredTypeRegistry scope) |
JSType |
CodingConvention.AssertionFunctionSpec.getAssertedNewType(Node call,
DeclaredTypeRegistry scope)
Returns the new type system type for a type assertion.
|
| Constructor and Description |
|---|
AssertionFunctionSpec(String functionName,
JSType assertedNewType) |
AssertionFunctionSpec(String functionName,
JSType assertedNewType,
JSTypeNative assertedType) |
| Modifier and Type | Field and Description |
|---|---|
static JSType |
JSType.BOOLEAN |
static JSType |
JSType.BOTTOM |
static JSType |
JSType.FALSE_TYPE |
static JSType |
JSType.FALSY |
static JSType |
JSType.NULL |
static JSType |
JSType.NULL_OR_UNDEF |
static JSType |
JSType.NUM_OR_STR |
static JSType |
JSType.NUMBER |
static JSType |
JSType.STRING |
static JSType |
JSType.TOP |
static JSType |
JSType.TOP_DICT |
static JSType |
JSType.TOP_OBJECT |
static JSType |
JSType.TOP_SCALAR |
static JSType |
JSType.TOP_STRUCT |
static JSType |
JSType.TRUE_TYPE |
static JSType |
JSType.TRUTHY |
static JSType |
JSType.UNDEFINED |
static JSType |
JSType.UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
Collection<JSType> |
JSType.getAlternates() |
| Modifier and Type | Method and Description |
|---|---|
void |
NominalType.RawNominalType.addClassProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared property to instances of this class
|
void |
NominalType.RawNominalType.addCtorProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared property to this class's constructor
|
FunctionTypeBuilder |
FunctionTypeBuilder.addOptFormal(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addOuterVarPrecondition(String name,
JSType t) |
void |
Namespace.addProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared property to this namespace
|
void |
NominalType.RawNominalType.addProtoProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared prototype property to this class
|
FunctionTypeBuilder |
FunctionTypeBuilder.addReqFormal(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addRestFormals(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addRetType(JSType t) |
void |
Namespace.addUndeclaredProperty(String pname,
Node defSite,
JSType t,
boolean isConstant)
Add a new undeclared property to this namespace
|
static boolean |
JSType.areCompatibleScalarTypes(JSType lhs,
JSType rhs) |
JSType |
JSTypes.getArrayInstance(JSType t) |
boolean |
JSType.isNonLooseSubtypeOf(JSType other) |
boolean |
JSTypes.isNumberScalarOrObj(JSType t) |
boolean |
JSTypes.isNumStrScalarOrObj(JSType t) |
boolean |
JSTypes.isStringScalarOrObj(JSType t) |
static JSType |
JSType.join(JSType lhs,
JSType rhs) |
static JSType |
JSType.meet(JSType lhs,
JSType rhs) |
static JSType |
JSType.plus(JSType lhs,
JSType rhs) |
TypeEnv |
TypeEnv.putType(String n,
JSType t) |
JSType |
JSType.removeType(JSType other) |
void |
JSTypes.setBooleanInstance(JSType t) |
void |
JSTypes.setNumberInstance(JSType t) |
void |
JSTypes.setRegexpInstance(JSType regexpType) |
void |
JSTypes.setStringInstance(JSType t) |
JSType |
JSType.specialize(JSType other) |
boolean |
JSType.unifyWithSubtype(JSType other,
List<String> typeParameters,
com.google.common.collect.Multimap<String,JSType> typeMultimap)
Unify
this, which may contain free type variables,
with other, a concrete subtype, modifying the supplied
typeMultimap to add any new template variable type bindings. |
JSType |
JSType.withDeclaredProperty(QualifiedName qname,
JSType type,
boolean isConstant) |
JSType |
JSType.withProperty(QualifiedName qname,
JSType type) |
| Modifier and Type | Method and Description |
|---|---|
FunctionType |
FunctionType.instantiateGenerics(Map<String,JSType> typeMap) |
FunctionType |
FunctionType.instantiateGenericsFromArgumentTypes(List<JSType> argTypes) |
JSType |
JSType.substituteGenerics(Map<String,JSType> concreteTypes) |
boolean |
JSType.unifyWithSubtype(JSType other,
List<String> typeParameters,
com.google.common.collect.Multimap<String,JSType> typeMultimap)
Unify
this, which may contain free type variables,
with other, a concrete subtype, modifying the supplied
typeMultimap to add any new template variable type bindings. |
| Constructor and Description |
|---|
Declaration(JSType simpleType,
Typedef typedef,
NamespaceLit namespaceLit,
EnumType enumType,
DeclaredTypeRegistry functionScope,
NominalType.RawNominalType nominal,
boolean isFormal,
boolean isTypeVar,
boolean isConstant,
boolean isFromExterns,
boolean isForwardDeclaration) |
Copyright © 2009-2015 Google. All Rights Reserved.