Package | Description |
---|---|
com.google.javascript.jscomp.newtypes |
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 |
---|---|
void |
NominalType.RawNominalType.addClassProperty(String pname,
JSType type,
boolean isConstant)
Add a new non-optional declared property to instances of this class
|
void |
NominalType.RawNominalType.addCtorProperty(String pname,
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,
JSType type,
boolean isConstant)
Add a new non-optional declared property to this namespace
|
void |
NominalType.RawNominalType.addProtoProperty(String pname,
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,
JSType t,
boolean isConstant)
Add a new undeclared property to this namespace
|
static boolean |
JSType.areCompatibleScalarTypes(JSType lhs,
JSType rhs) |
boolean |
JSType.isNonLooseSubtypeOf(JSType other) |
boolean |
JSType.isSubtypeOf(JSType other) |
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) |
JSType |
JSType.specialize(JSType other) |
boolean |
JSType.unifyWith(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 type, 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.instantiateGenericsFromArgumentList(List<JSType> argTypes) |
JSType |
JSType.substituteGenerics(Map<String,JSType> concreteTypes) |
boolean |
JSType.unifyWith(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 type, modifying the supplied
typeMultimap to add any new template variable type bindings. |
Copyright © 2009–2014 Google. All rights reserved.