Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Field and Description |
---|---|
private TypedScope |
LinkedFlowScope.FlatFlowScopeCache.functionScope |
private TypedScope |
TypedScope.parent |
(package private) TypedScope |
TypedVar.scope |
private TypedScope |
FunctionTypeBuilder.scope |
(package private) TypedScope |
TypedScopeCreator.AbstractScopeBuilder.scope
The scope that we're building.
|
private TypedScope |
TypeInference.syntacticScope |
(package private) TypedScope |
PassConfig.topScope
The global typed scope.
|
private TypedScope |
TypeCheck.topScope |
private TypedScope |
TypeInferencePass.topScope |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Node,TypedScope> |
MemoizedScopeCreator.scopes |
Modifier and Type | Method and Description |
---|---|
(package private) static TypedScope |
TypedScope.createGlobalScope(Node rootNode) |
(package private) TypedScope |
TypedScopeCreator.createInitialScope(Node root)
Create the outermost scope.
|
(package private) static TypedScope |
TypedScope.createLatticeBottom(Node rootNode) |
TypedScope |
TypedScopeCreator.createScope(Node root,
Scope parent)
Creates a scope with all types declared.
|
TypedScope |
MemoizedScopeCreator.createScope(Node n,
Scope parent) |
private TypedScope |
LinkedFlowScope.getFunctionScope()
Gets the function scope for this flow scope.
|
(package private) TypedScope |
TypedScope.getGlobalScope() |
TypedScope |
TypedScope.getParent() |
private TypedScope |
TypedScopeCreator.AbstractScopeBuilder.getQnameRootScope(Node n)
Return the scope for the name of the given node.
|
TypedScope |
TypedVar.getScope() |
TypedScope |
MemoizedScopeCreator.getScope(TypedVar var) |
private TypedScope |
FunctionTypeBuilder.getScopeDeclaredIn()
The scope that we should declare this function in, if it needs
to be declared in a scope.
|
(package private) TypedScope |
PassConfig.getTopScope()
Gets the global scope, with type information.
|
(package private) TypedScope |
PassConfig.PassConfigDelegate.getTopScope() |
TypedScope |
Compiler.getTopScope() |
abstract TypedScope |
AbstractCompiler.getTopScope()
Gets the top scope.
|
TypedScope |
NodeTraversal.getTypedScope() |
TypedScope |
TypeCheck.processForTesting(Node externsRoot,
Node jsRoot)
Main entry point of this phase for testing code.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Collection<TypedScope> |
MemoizedScopeCreator.getAllMemoizedScopes() |
Modifier and Type | Method and Description |
---|---|
static LinkedFlowScope |
LinkedFlowScope.createEntryLattice(TypedScope scope)
Creates an entry lattice for the flow.
|
private void |
TypedScopeCreator.declareNativeFunctionType(TypedScope scope,
JSTypeNative tId) |
private static void |
TypedScopeCreator.declareNativeType(TypedScope scope,
java.lang.String name,
JSType t) |
private void |
TypedScopeCreator.declareNativeValueType(TypedScope scope,
java.lang.String name,
JSTypeNative tId) |
private void |
TypedScopeCreator.AbstractScopeBuilder.finishConstructorDefinition(Node n,
java.lang.String variableName,
FunctionType fnType,
TypedScope scopeToDeclareIn,
CompilerInput input,
TypedVar newVar) |
private void |
TypeInference.inferArguments(TypedScope functionScope)
Infers all of a function's arguments if their types aren't declared.
|
(package private) void |
TypeInferencePass.inferScope(Node n,
TypedScope scope) |
(package private) void |
TypedScopeCreator.patchGlobalScope(TypedScope globalScope,
Node scriptRoot)
Patches a given global scope by removing variables previously declared in
a script and re-traversing a new version of that script.
|
(package private) void |
TypedScopeCreator.DeferredSetType.resolve(TypedScope scope) |