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 |
Scope
Scope contains information about a variable scope in JavaScript.
|
class |
TypedScope
TypedScope contains information about variables and their types.
|
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.
|
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.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-2019 Google. All Rights Reserved.