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 |
---|---|
(package private) QualifiedName |
NewTypeInference.LValueResultFwd.ptr |
(package private) QualifiedName |
NewTypeInference.LValueResultBwd.ptr |
Modifier and Type | Method and Description |
---|---|
private NewTypeInference.LValueResultBwd |
NewTypeInference.analyzePropLValBwd(Node obj,
QualifiedName pname,
TypeEnv outEnv,
JSType type,
boolean doSlicing) |
private NewTypeInference.LValueResultFwd |
NewTypeInference.analyzePropLValFwd(Node obj,
QualifiedName pname,
NewTypeInference.LValueResultFwd recvLvalue,
JSType requiredType,
boolean insideQualifiedName) |
private NewTypeInference.LValueResultFwd |
NewTypeInference.analyzeReceiverLvalFwd(Node obj,
QualifiedName pname,
TypeEnv inEnv,
JSType propType) |
(package private) RawNominalType |
GlobalTypeInfo.ProcessScope.checkValidLendsToPrototypeAndGetClass(QualifiedName lendsQname,
java.lang.String lendsName,
Node objlit) |
Declaration |
NTIScope.getDeclaration(QualifiedName qname,
boolean includeTypes) |
(package private) EnumType |
NTIScope.getEnum(QualifiedName qname) |
(package private) Namespace |
NTIScope.getNamespace(QualifiedName qname) |
(package private) RawNominalType |
NTIScope.getNominalType(QualifiedName qname) |
private NTIScope |
NTIScope.getScopeHelper(QualifiedName qname) |
(package private) boolean |
NTIScope.isKnownFunction(QualifiedName qname) |
(package private) boolean |
NTIScope.isNamespace(QualifiedName qname) |
private boolean |
NewTypeInference.mayWarnAboutConstProp(Node propAccess,
JSType recvType,
QualifiedName pname) |
private boolean |
NewTypeInference.mayWarnAboutInexistentProp(Node propAccessNode,
JSType recvType,
QualifiedName propQname,
TypeEnv env) |
private boolean |
NewTypeInference.mayWarnAboutPropCreation(QualifiedName pname,
Node getProp,
JSType recvType) |
(package private) void |
GlobalTypeInfo.ProcessScope.processLendsToNamespace(QualifiedName lendsQname,
java.lang.String lendsName,
Node objlit) |
private TypeEnv |
NewTypeInference.updateLvalueTypeInEnv(TypeEnv env,
Node lvalue,
QualifiedName qname,
JSType type) |
Constructor and Description |
---|
LValueResultBwd(TypeEnv env,
JSType type,
QualifiedName ptr) |
LValueResultFwd(TypeEnv env,
JSType type,
JSType declType,
QualifiedName ptr) |
Modifier and Type | Method and Description |
---|---|
static QualifiedName |
QualifiedName.fromNode(Node qnameNode) |
static QualifiedName |
QualifiedName.fromQualifiedString(java.lang.String qname) |
QualifiedName |
QualifiedName.getAllButLeftmost() |
QualifiedName |
QualifiedName.getAllButRightmost() |
static QualifiedName |
QualifiedName.join(QualifiedName lhs,
QualifiedName rhs) |
Modifier and Type | Method and Description |
---|---|
void |
Namespace.addNamespace(QualifiedName qname,
Namespace ns) |
void |
Namespace.addTypedef(QualifiedName qname,
Typedef td) |
Declaration |
Namespace.getDeclaration(QualifiedName qname) |
Declaration |
DeclaredTypeRegistry.getDeclaration(QualifiedName qname,
boolean includeTypes)
Returns the declaration of the given qualified name,
or null if the name is not defined.
|
(package private) static JSType |
TypeWithPropertiesStatics.getDeclaredProp(com.google.common.collect.ImmutableSet<? extends TypeWithProperties> types,
QualifiedName qname) |
JSType |
EnumType.getDeclaredProp(QualifiedName qname) |
JSType |
JSType.getDeclaredProp(QualifiedName qname) |
JSType |
ObjectType.getDeclaredProp(QualifiedName qname) |
JSType |
TypeWithProperties.getDeclaredProp(QualifiedName qname)
Get the declared type of the given property
|
private Property |
ObjectType.getLeftmostProp(QualifiedName qname) |
(package private) static JSType |
TypeWithPropertiesStatics.getProp(com.google.common.collect.ImmutableSet<? extends TypeWithProperties> types,
QualifiedName qname) |
JSType |
EnumType.getProp(QualifiedName qname) |
JSType |
JSType.getProp(QualifiedName qname) |
JSType |
ObjectType.getProp(QualifiedName qname) |
JSType |
TypeWithProperties.getProp(QualifiedName qname)
Get the inferred type of the given property
|
private Namespace |
Namespace.getReceiverNamespace(QualifiedName qname) |
Namespace |
Namespace.getSubnamespace(QualifiedName qname) |
(package private) static boolean |
TypeWithPropertiesStatics.hasConstantProp(com.google.common.collect.ImmutableSet<? extends TypeWithProperties> types,
QualifiedName qname) |
boolean |
EnumType.hasConstantProp(QualifiedName qname) |
boolean |
JSType.hasConstantProp(QualifiedName pname) |
boolean |
ObjectType.hasConstantProp(QualifiedName qname) |
boolean |
TypeWithProperties.hasConstantProp(QualifiedName qname)
Return whether this type contains a constant property
|
(package private) static boolean |
TypeWithPropertiesStatics.hasProp(com.google.common.collect.ImmutableSet<? extends TypeWithProperties> types,
QualifiedName qname) |
boolean |
EnumType.hasProp(QualifiedName qname) |
boolean |
JSType.hasProp(QualifiedName qname) |
boolean |
ObjectType.hasProp(QualifiedName qname) |
boolean |
TypeWithProperties.hasProp(QualifiedName qname)
Return whether this type contains a required property
|
boolean |
Namespace.hasSubnamespace(QualifiedName qname) |
boolean |
Namespace.isDefined(QualifiedName qname) |
static QualifiedName |
QualifiedName.join(QualifiedName lhs,
QualifiedName rhs) |
(package private) static boolean |
TypeWithPropertiesStatics.mayHaveProp(com.google.common.collect.ImmutableSet<? extends TypeWithProperties> types,
QualifiedName qname) |
boolean |
EnumType.mayHaveProp(QualifiedName qname) |
boolean |
JSType.mayHaveProp(QualifiedName qname) |
boolean |
ObjectType.mayHaveProp(QualifiedName qname) |
boolean |
TypeWithProperties.mayHaveProp(QualifiedName qname)
Return whether this type contains any form of property
|
JSType |
JSType.withDeclaredProperty(QualifiedName qname,
JSType type,
boolean isConstant) |
(package private) static com.google.common.collect.ImmutableSet<ObjectType> |
ObjectType.withDeclaredProperty(java.util.Set<ObjectType> objs,
QualifiedName qname,
JSType type,
boolean isConstant) |
JSType |
JSType.withoutProperty(QualifiedName qname) |
(package private) static com.google.common.collect.ImmutableSet<ObjectType> |
ObjectType.withoutProperty(java.util.Set<ObjectType> objs,
QualifiedName qname) |
JSType |
JSType.withProperty(QualifiedName qname,
JSType type) |
(package private) ObjectType |
ObjectType.withProperty(QualifiedName qname,
JSType type) |
(package private) static com.google.common.collect.ImmutableSet<ObjectType> |
ObjectType.withProperty(java.util.Set<ObjectType> objs,
QualifiedName qname,
JSType type) |
private ObjectType |
ObjectType.withPropertyHelper(QualifiedName qname,
JSType type,
boolean isDeclared,
boolean isConstant) |