| 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 |
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 |
|---|---|
StaticTypedScope<JSType> |
FlowScope.getDeclarationScope()
Returns the underlying TypedScope.
|
| Modifier and Type | Method and Description |
|---|---|
FlowScope |
FlowScope.createChildFlowScope(StaticTypedScope<JSType> scope)
Creates a child flow scope with the given syntactic scope, which may be required to be a
specific subclass, such as TypedScope.
|
| Modifier and Type | Method and Description |
|---|---|
JSType |
JSTypeExpression.evaluate(StaticTypedScope<JSType> scope,
TypeIRegistry registry)
Evaluates the type expression into a
JSType object. |
| Modifier and Type | Method and Description |
|---|---|
StaticTypedScope<T> |
StaticTypedScope.getParentScope()
Returns the scope enclosing this one or null if none.
|
StaticTypedScope<JSType> |
SimpleSlot.getScope() |
StaticTypedScope<T> |
StaticTypedSlot.getScope() |
StaticTypedScope<JSType> |
Property.getScope() |
| Modifier and Type | Method and Description |
|---|---|
NamedType |
JSTypeRegistry.createNamedType(StaticTypedScope<JSType> scope,
java.lang.String reference,
java.lang.String sourceName,
int lineno,
int charno)
Creates a named type.
|
JSType |
JSTypeRegistry.createTypeFromCommentNode(Node n,
java.lang.String sourceName,
StaticTypedScope<? extends TypeI> scope)
Creates a JSType from the nodes representing a type.
|
JSType |
JSTypeRegistry.getType(StaticTypedScope<JSType> scope,
java.lang.String jsTypeName,
java.lang.String sourceName,
int lineno,
int charno)
Looks up a type by name.
|
void |
JSTypeRegistry.resolveTypesInScope(StaticTypedScope<JSType> scope)
Resolve all the unresolved types in the given scope.
|
Copyright © 2009-2018 Google. All Rights Reserved.