Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.rhino |
The core AST from Rhino.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GlobalNamespace.Name
A name defined in global scope (e.g.
|
private static class |
LinkedFlowScope.LinkedFlowSlot
A static slot that can be used in a linked list.
|
static class |
SymbolTable.Symbol
A symbol-table entry
|
class |
TypedVar
Several methods in this class, such as
isVar throw an exception when called. |
class |
Var
Used by
Scope to store information about variables. |
private static class |
Var.Arguments
A special subclass of Var used to distinguish "arguments" in the current
scope.
|
Modifier and Type | Method and Description |
---|---|
(package private) <S extends StaticSlot,R extends StaticRef> |
SymbolTable.addSymbolsFrom(StaticSymbolTable<S,R> otherSymbolTable)
Make sure all the symbols and references in
otherSymbolTable
are in this symbol table. |
private <S extends StaticSlot,R extends StaticRef> |
SymbolTable.findBestDeclToAdd(StaticSymbolTable<S,R> otherSymbolTable,
S slot)
Helper for addSymbolsFrom, to determine the best declaration spot.
|
Modifier and Type | Method and Description |
---|---|
private SymbolTable.Symbol |
SymbolTable.copySymbolTo(StaticSlot sym,
Node declNode,
SymbolTable.SymbolScope scope) |
private SymbolTable.Symbol |
SymbolTable.copySymbolTo(StaticSlot sym,
SymbolTable.SymbolScope scope) |
private JSType |
SymbolTable.getType(StaticSlot sym) |
private boolean |
SymbolTable.isTypeInferred(StaticSlot sym) |
Modifier and Type | Interface and Description |
---|---|
interface |
StaticSymbolTable<S extends StaticSlot,R extends StaticRef>
Lookup references by the symbols that they refer to.
|
Modifier and Type | Method and Description |
---|---|
StaticSlot |
StaticScope.getOwnSlot(java.lang.String name)
Like
getSlot but does not recurse into parent scopes. |
StaticSlot |
StaticScope.getSlot(java.lang.String name)
Returns any defined slot within this scope for this name.
|
StaticSlot |
StaticRef.getSymbol()
The variable that this reference points to.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StaticTypedSlot<T>
The
StaticTypedSlot interface must be implemented by variables that can
appear as members of a StaticTypedScope . |
Modifier and Type | Class and Description |
---|---|
class |
Property
A property slot of an object.
|
class |
SimpleSlot
The minimum implementation of
StaticTypedSlot<JSType> . |