| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| com.google.javascript.jscomp.newtypes |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodingConventions.Proxy.applySingletonGetterNew(RawNominalType rawType,
JSType getInstanceType,
JSType instanceType) |
void |
ClosureCodingConvention.applySingletonGetterNew(RawNominalType rawType,
JSType getInstanceType,
JSType instanceType) |
void |
CodingConvention.applySingletonGetterNew(RawNominalType rawType,
JSType getInstanceType,
JSType instanceType) |
| Modifier and Type | Field and Description |
|---|---|
JSType |
JSTypes.BOOLEAN |
JSType |
JSTypes.BOTTOM |
JSType |
JSTypes.FALSE_TYPE |
JSType |
JSTypes.FALSY |
protected JSType |
Namespace.namespaceType |
JSType |
JSTypes.NULL |
JSType |
JSTypes.NULL_OR_UNDEFINED |
JSType |
JSTypes.NUMBER |
JSType |
JSTypes.NUMBER_OR_STRING |
JSType |
JSTypeCreatorFromJSDoc.FunctionAndSlotType.slotType |
JSType |
JSTypes.STRING |
JSType |
JSTypes.TOP |
JSType |
JSTypes.TOP_SCALAR |
JSType |
JSTypes.TRUE_TYPE |
JSType |
JSTypes.TRUTHY |
JSType |
JSTypes.UNDEFINED |
JSType |
JSTypes.UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
Collection<JSType> |
JSType.getDirectImplementors() |
Collection<JSType> |
EnumType.getSubtypesWithProperty(QualifiedName qname) |
| Modifier and Type | Method and Description |
|---|---|
void |
RawNominalType.addClassProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared property to instances of this class
|
void |
RawNominalType.addCtorProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared property to this class's constructor
|
FunctionTypeBuilder |
FunctionTypeBuilder.addNominalType(JSType t) |
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 |
RawNominalType.addPropertyWhichMayNotBeOnAllInstances(String pname,
JSType type) |
void |
RawNominalType.addProtoProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new declared prototype property to this class
|
FunctionTypeBuilder |
FunctionTypeBuilder.addReceiverType(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addReqFormal(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addRestFormals(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addRetType(JSType t) |
void |
RawNominalType.addUndeclaredClassProperty(String pname,
JSType type,
Node defSite)
Add a new undeclared property to instances of this class
|
void |
Namespace.addUndeclaredProperty(String pname,
Node defSite,
JSType t,
boolean isConstant)
Add a new undeclared property to this namespace
|
JSType |
JSTypes.getArgumentsArrayType(JSType t) |
JSType |
JSTypes.getArrayInstance(JSType t) |
JSType |
JSTypes.getIArrayLikeInstance(JSType t) |
static boolean |
JSType.haveCommonSubtype(JSType lhs,
JSType rhs) |
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) |
JSType |
JSTypeCreatorFromJSDoc.maybeMakeNullable(JSType t) |
void |
NamespaceLit.maybeSetWindowInstance(JSType obj) |
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 regexpInstance) |
void |
JSTypes.setStringInstance(JSType t) |
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 subtype, modifying the supplied
typeMultimap to add any new template variable type bindings. |
static MismatchInfo |
JSType.whyNotSubtypeOf(JSType t1,
JSType t2) |
JSType |
JSType.withDeclaredProperty(QualifiedName qname,
JSType type,
boolean isConstant) |
JSType |
JSType.withProperty(QualifiedName qname,
JSType type) |
DeclaredFunctionType |
DeclaredFunctionType.withReceiverType(JSType newReceiverType) |
| 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.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 subtype, modifying the supplied
typeMultimap to add any new template variable type bindings. |
| Constructor and Description |
|---|
Declaration(JSType simpleType,
Typedef typedef,
Namespace ns,
DeclaredTypeRegistry funScope,
boolean isTypeVar,
boolean isConstant) |
FunctionAndSlotType(JSType slotType,
DeclaredFunctionType functionType) |
Copyright © 2009-2017 Google. All Rights Reserved.