| 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 |
FlowScope.getDeclarationScope()
Returns the underlying TypedScope.
|
| Modifier and Type | Method and Description |
|---|---|
FlowScope |
FlowScope.withSyntacticScope(StaticTypedScope scope)
Returns a 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 scope,
JSTypeRegistry registry)
Evaluates the type expression into a
JSType object. |
| Modifier and Type | Method and Description |
|---|---|
StaticTypedScope |
JSTypeRegistry.createScopeWithTemplates(StaticTypedScope scope,
java.lang.Iterable<TemplateType> templates)
Returns a new scope that includes the given template names for type resolution
purposes.
|
StaticTypedScope |
StaticTypedScope.getParentScope()
Returns the scope enclosing this one or null if none.
|
StaticTypedScope |
SimpleSlot.getScope() |
StaticTypedScope |
Property.getScope() |
StaticTypedScope |
StaticTypedSlot.getScope() |
| Modifier and Type | Method and Description |
|---|---|
NamedType |
JSTypeRegistry.createNamedType(StaticTypedScope scope,
java.lang.String reference,
java.lang.String sourceName,
int lineno,
int charno)
Creates a named type.
|
StaticTypedScope |
JSTypeRegistry.createScopeWithTemplates(StaticTypedScope scope,
java.lang.Iterable<TemplateType> templates)
Returns a new scope that includes the given template names for type resolution
purposes.
|
JSType |
JSTypeRegistry.createTypeFromCommentNode(Node n,
java.lang.String sourceName,
StaticTypedScope scope)
Creates a JSType from the nodes representing a type.
|
JSType |
JSTypeRegistry.evaluateTypeExpression(JSTypeExpression expr,
StaticTypedScope scope) |
JSType |
JSTypeRegistry.getType(StaticTypedScope scope,
java.lang.String jsTypeName,
java.lang.String sourceName,
int lineno,
int charno)
Looks up a type by name.
|
Copyright © 2009-2020 Google. All Rights Reserved.