private final class TypedScopeCreator.GlobalScopeBuilder extends TypedScopeCreator.AbstractScopeBuilder
scope
Modifier | Constructor and Description |
---|---|
private |
GlobalScopeBuilder(TypedScope scope) |
Modifier and Type | Method and Description |
---|---|
private void |
checkForTypedef(Node candidate,
JSDocInfo info)
Handle typedefs.
|
(package private) void |
maybeDeclareQualifiedName(NodeTraversal t,
JSDocInfo info,
Node n,
Node parent,
Node rhsValue)
Declare the symbol for a qualified name in the global scope.
|
void |
visit(NodeTraversal t,
Node n,
Node parent)
Visit a node in the global scope, and add anything it declares to the
global symbol table.
|
assertDefinitionNode, defineCatch, defineFunctionLiteral, defineSlot, defineSlot, defineVar, getDeclaredType, processObjectLitProperties, resolveStubDeclarations, resolveTypes, setDeferredType, shouldTraverse
private GlobalScopeBuilder(TypedScope scope)
public void visit(NodeTraversal t, Node n, Node parent)
visit
in interface NodeTraversal.Callback
visit
in class TypedScopeCreator.AbstractScopeBuilder
t
- The current traversal.n
- The node being visited.parent
- The parent of nvoid maybeDeclareQualifiedName(NodeTraversal t, JSDocInfo info, Node n, Node parent, Node rhsValue)
TypedScopeCreator.AbstractScopeBuilder
maybeDeclareQualifiedName
in class TypedScopeCreator.AbstractScopeBuilder
info
- The doc info for this property.n
- A top-level GETPROP node (it should not be contained inside
another GETPROP).parent
- The parent of n
.rhsValue
- The node that n
is being initialized to,
or null
if this is a stub declaration.