Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Field and Description |
---|---|
private GlobalNamespace.Ref |
GlobalNamespace.Name.declaration
The first global assignment to a name.
|
(package private) GlobalNamespace.Ref |
ProcessDefines.CollectDefines.RefInfo.ref |
private GlobalNamespace.Ref |
GlobalNamespace.Ref.twin
Certain types of references are actually double-refs.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<GlobalNamespace.Ref> |
GlobalNamespace.Name.refs
All references to a name.
|
Modifier and Type | Method and Description |
---|---|
(package private) GlobalNamespace.Ref |
GlobalNamespace.Ref.cloneAndReclassify(GlobalNamespace.Ref.Type type)
Create a new ref that is the same as this one, but of
a different class.
|
(package private) static GlobalNamespace.Ref |
GlobalNamespace.Ref.createRefForTesting(GlobalNamespace.Ref.Type type) |
GlobalNamespace.Ref |
GlobalNamespace.Name.getDeclaration() |
(package private) GlobalNamespace.Ref |
GlobalNamespace.Ref.getTwin() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<GlobalNamespace.Ref> |
GlobalNamespace.getReferences(GlobalNamespace.Name slot) |
(package private) java.util.List<GlobalNamespace.Ref> |
GlobalNamespace.Name.getRefs() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
GlobalNamespace.Name.addRef(GlobalNamespace.Ref ref) |
(package private) void |
GlobalNamespace.Name.addRefInternal(GlobalNamespace.Ref ref) |
private static JSDocInfo |
GlobalNamespace.Name.getDocInfoForDeclaration(GlobalNamespace.Ref ref)
Tries to get the doc info for a given declaration ref.
|
private static Node |
CollapseProperties.getValueParent(GlobalNamespace.Ref ref)
Gets the parent node of the value for any assignment to a Name.
|
private static Node |
ProcessDefines.CollectDefines.getValueParent(GlobalNamespace.Ref ref)
Gets the parent node of the value for any assignment to a Name.
|
private boolean |
CollapseProperties.inlineAliasIfPossible(GlobalNamespace.Name name,
GlobalNamespace.Ref alias,
GlobalNamespace namespace) |
private boolean |
CollapseProperties.inlineGlobalAliasIfPossible(GlobalNamespace.Name name,
GlobalNamespace.Ref alias,
GlobalNamespace namespace)
Attempt to inline an global alias of a global name.
|
private boolean |
CollapseProperties.isSafeNamespaceReinit(GlobalNamespace.Ref ref) |
private static boolean |
CheckGlobalNames.isTypedef(GlobalNamespace.Ref ref) |
(package private) static void |
GlobalNamespace.Ref.markTwins(GlobalNamespace.Ref a,
GlobalNamespace.Ref b) |
(package private) void |
GlobalNamespace.Name.removeRef(GlobalNamespace.Ref ref) |
private void |
CheckGlobalNames.reportBadModuleReference(GlobalNamespace.Name name,
GlobalNamespace.Ref ref) |
private void |
CheckGlobalNames.reportRefToUndefinedName(GlobalNamespace.Name name,
GlobalNamespace.Ref ref) |
private void |
CollapseProperties.updateSimpleDeclaration(java.lang.String alias,
GlobalNamespace.Name refName,
GlobalNamespace.Ref ref)
Updates the initial assignment to a collapsible property at global scope
by changing it to a variable declaration (e.g.
|
private void |
CollapseProperties.warnAboutNamespaceAliasing(GlobalNamespace.Name nameObj,
GlobalNamespace.Ref ref)
Reports a warning because a namespace was aliased.
|
private void |
CollapseProperties.warnAboutNamespaceRedefinition(GlobalNamespace.Name nameObj,
GlobalNamespace.Ref ref)
Reports a warning because a namespace was redefined.
|
Constructor and Description |
---|
Ref(GlobalNamespace.Ref original,
GlobalNamespace.Ref.Type type,
int index) |
RefInfo(GlobalNamespace.Ref ref,
GlobalNamespace.Name name) |