Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.type |
Provides type-checking data structures and algorithms.
|
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 |
---|---|
class |
AbstractScope<S extends AbstractScope<S,V>,V extends AbstractVar<S,V>>
Scope contains information about a variable scope in JavaScript.
|
class |
Scope
Scope contains information about a variable scope in JavaScript.
|
class |
TypedScope
TypedScope contains information about variables and their types.
|
Modifier and Type | Method and Description |
---|---|
StaticScope |
TypedScope.getTopmostScopeOfEventualDeclaration(java.lang.String name) |
Modifier and Type | Interface and Description |
---|---|
interface |
FlowScope
A symbol table for inferring types during data flow analysis.
|
Modifier and Type | Method and Description |
---|---|
StaticScope |
StaticScope.getParentScope()
Returns the scope enclosing this one or null if none.
|
StaticScope |
StaticSlot.getScope() |
StaticScope |
StaticSymbolTable.getScope(S symbol)
Returns the scope for a given symbol.
|
default StaticScope |
StaticScope.getTopmostScopeOfEventualDeclaration(java.lang.String name)
Returns the topmost slot containing this name, or null if no slots do.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StaticTypedScope
The
StaticTypedScope interface must be implemented by any object that defines variables
for the purposes of static analysis. |
Modifier and Type | Method and Description |
---|---|
boolean |
JSTypeRegistry.declareType(StaticScope scope,
java.lang.String name,
JSType type)
Records declared global type names.
|
boolean |
JSTypeRegistry.declareTypeForExactScope(StaticScope scope,
java.lang.String name,
JSType type)
Records declared global type names.
|
JSType |
JSTypeRegistry.getType(StaticScope scope,
java.lang.String jsTypeName)
Looks up a native type by name.
|
JSType |
JSTypeRegistry.getTypeForScope(StaticScope scope,
java.lang.String jsTypeName)
Looks up a native type by name.
|
void |
JSTypeRegistry.identifyNonNullableName(StaticScope scope,
java.lang.String name)
Identifies the name of a typedef or enum before we actually declare it.
|
boolean |
JSTypeRegistry.isNonNullableName(StaticScope scope,
java.lang.String name)
Identifies the name of a typedef or enum before we actually declare it.
|
void |
JSTypeRegistry.overwriteDeclaredType(StaticScope scope,
java.lang.String name,
JSType type)
Overrides a declared global type name.
|
void |
JSTypeRegistry.removeType(StaticScope scope,
java.lang.String name)
Removes a type by name.
|
Copyright © 2009-2020 Google. All Rights Reserved.