Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Field and Description |
---|---|
(package private) NTIScope |
NewTypeInference.DeferredCheck.calleeScope |
(package private) NTIScope |
NewTypeInference.DeferredCheck.callerScope |
private NTIScope |
NewTypeInference.currentScope |
private NTIScope |
GlobalTypeInfo.CollectNamedTypes.currentScope |
private NTIScope |
GlobalTypeInfo.ProcessScope.currentScope |
private NTIScope |
GlobalTypeInfo.globalScope |
(package private) NTIScope |
GlobalTypeInfo.PropertyDef.methodScope |
private NTIScope |
NTIScope.parent |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,NTIScope> |
NTIScope.localFunDefs |
private java.util.List<NTIScope> |
GlobalTypeInfo.scopes |
private java.util.Map<NTIScope,JSType> |
NewTypeInference.summaries |
Modifier and Type | Method and Description |
---|---|
(package private) NTIScope |
GlobalTypeInfo.getGlobalScope() |
(package private) NTIScope |
NTIScope.getParent() |
(package private) NTIScope |
NTIScope.getScope(java.lang.String fnName) |
private NTIScope |
NTIScope.getScopeHelper(QualifiedName qname) |
NTIScope |
NewTypeInference.processForTesting(Node externs,
Node root) |
private NTIScope |
GlobalTypeInfo.ProcessScope.visitFunctionLate(Node fn,
RawNominalType ownerType)
Compute the declared type for a given scope.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Collection<NTIScope> |
GlobalTypeInfo.getScopes() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
NTIScope.addLocalFunDef(java.lang.String name,
NTIScope scope) |
private void |
NewTypeInference.analyzeFunction(NTIScope scope) |
private JSType |
NewTypeInference.changeTypeIfFunctionNamespace(NTIScope fnScope,
JSType fnType) |
private DeclaredFunctionType |
GlobalTypeInfo.ProcessScope.computeFnDeclaredType(JSDocInfo fnDoc,
java.lang.String functionName,
Node declNode,
RawNominalType ownerType,
NTIScope parentScope) |
private static void |
NTIScope.copyOuterVarsTransitively(NTIScope s) |
private void |
NewTypeInference.createSummary(NTIScope fn) |
private DeclaredFunctionType |
GlobalTypeInfo.ProcessScope.getDeclaredFunctionTypeFromContext(java.lang.String functionName,
Node declNode,
NTIScope parentScope) |
private DeclaredFunctionType |
GlobalTypeInfo.getDeclaredFunctionTypeOfCalleeIfAny(Node fn,
NTIScope currentScope) |
private JSType |
GlobalTypeInfo.getDeclaredTypeOfNode(JSDocInfo jsdoc,
NTIScope s) |
private JSType |
GlobalTypeInfo.getVarTypeFromAnnotation(Node nameNode,
NTIScope currentScope) |
private static boolean |
NewTypeInference.isAllowedToNotReturn(NTIScope methodScope) |
private static boolean |
GlobalTypeInfo.isClassPropertyDeclaration(Node n,
NTIScope s) |
private boolean |
GlobalTypeInfo.ProcessScope.isStaticCtorProp(Node getProp,
NTIScope s) |
(package private) static void |
NTIScope.mayRecordEscapedVar(NTIScope s,
java.lang.String name) |
private boolean |
NewTypeInference.mayWarnAboutGlobalThis(Node thisExpr,
NTIScope currentScope) |
Modifier and Type | Method and Description |
---|---|
private void |
NewTypeInference.DeferredCheck.runCheck(java.util.Map<NTIScope,JSType> summaries,
NewTypeInference.WarningReporter warnings) |
Constructor and Description |
---|
CollectNamedTypes(NTIScope s) |
DeferredCheck(Node callSite,
JSType expectedRetType,
NTIScope callerScope,
NTIScope calleeScope) |
NTIScope(Node root,
NTIScope parent,
java.util.List<java.lang.String> formals,
JSTypes commonTypes) |
ProcessScope(NTIScope currentScope) |
PropertyDef(Node defSite,
DeclaredFunctionType methodType,
NTIScope methodScope) |