Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ListMultimap<Node,NameAnalyzer.NameInformation> |
NameAnalyzer.scopes
Map of name scopes - all children of the Node key have a dependency on the
name value.
|
Modifier and Type | Method and Description |
---|---|
private NameAnalyzer.NameInformation |
NameAnalyzer.createNameInformation(NodeTraversal t,
Node n)
Creates name information for the current node during a traversal.
|
private NameAnalyzer.NameInformation |
NameAnalyzer.createNameInformation(java.lang.String name,
Scope scope,
Node rootNameNode)
Creates name information for a particular qualified name that occurs in a
particular scope.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<NameAnalyzer.NameInformation> |
NameAnalyzer.getDependencyScope(Node n)
Gets the nearest enclosing dependency scope, or null if there isn't one.
|
private java.util.List<NameAnalyzer.NameInformation> |
NameAnalyzer.getEnclosingFunctionDependencyScope(NodeTraversal t)
Get dependency scope defined by the enclosing function, or null.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
NameAnalyzer.FindReferences.maybeRecordAlias(java.lang.String name,
Node parent,
NameAnalyzer.NameInformation referring,
java.lang.String referringName) |
private void |
NameAnalyzer.FindReferences.maybeRecordReferenceOrAlias(NodeTraversal t,
Node n,
Node parent,
NameAnalyzer.NameInformation nameInfo,
NameAnalyzer.NameInformation referring) |
private void |
NameAnalyzer.FindDependencyScopes.recordDepScope(Node node,
NameAnalyzer.NameInformation name)
Defines a dependency scope.
|
Modifier and Type | Method and Description |
---|---|
private void |
NameAnalyzer.FindReferences.recordAliases(java.util.List<NameAnalyzer.NameInformation> referers) |