Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.newtypes | |
com.google.javascript.jscomp.parsing |
Provides utilities to help with parsing JSDoc annotations and performing AST
transformations.
|
com.google.javascript.rhino |
The core AST from Rhino.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
static JSDocInfo |
NodeUtil.getBestJSDocInfo(Node n)
Find the best JSDoc for the given node.
|
static JSDocInfo |
NodeUtil.getFunctionJSDocInfo(Node n)
Get the JSDocInfo for a function.
|
JSDocInfo |
SymbolTable.Symbol.getJSDocInfo() |
JSDocInfo |
Scope.Var.getJSDocInfo()
Gets the JSDocInfo for the variable.
|
Modifier and Type | Method and Description |
---|---|
Collection<JSDocInfo> |
SymbolTable.getAllJSDocInfo() |
Modifier and Type | Method and Description |
---|---|
static Node |
NodeUtil.newQualifiedNameNodeDeclaration(CodingConvention convention,
String name,
Node value,
JSDocInfo info)
Creates a node representing a qualified name.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<NominalType> |
JSTypeCreatorFromJSDoc.getExtendedInterfaces(JSDocInfo jsdoc,
NominalType.RawNominalType ownerType,
DeclaredTypeRegistry registry,
com.google.common.collect.ImmutableList<String> typeParameters) |
FunctionTypeBuilder |
JSTypeCreatorFromJSDoc.getFunctionType(JSDocInfo jsdoc,
Node funNode,
NominalType.RawNominalType ownerType,
DeclaredTypeRegistry registry)
Consumes either a "classic" function jsdoc with @param, @return, etc,
or a jsdoc with @type{function ...} and finds the types of the formal
parameters and the return value.
|
com.google.common.collect.ImmutableSet<NominalType> |
JSTypeCreatorFromJSDoc.getImplementedInterfaces(JSDocInfo jsdoc,
NominalType.RawNominalType ownerType,
DeclaredTypeRegistry registry,
com.google.common.collect.ImmutableList<String> typeParameters) |
JSType |
JSTypeCreatorFromJSDoc.getNodeTypeDeclaration(JSDocInfo jsdoc,
NominalType.RawNominalType ownerType,
DeclaredTypeRegistry registry) |
boolean |
JSTypeCreatorFromJSDoc.isRestArg(JSDocInfo funJsdoc,
String formalParamName) |
Modifier and Type | Method and Description |
---|---|
JSDocInfo |
JsDocInfoParser.parseInlineTypeDoc()
Parse a description as a
@type . |
Modifier and Type | Method and Description |
---|---|
JSDocInfo |
JSDocInfoBuilder.build(Node associatedNode)
Builds a
JSDocInfo object based on the populated information and
returns it. |
JSDocInfo |
Node.getJSDocInfo()
Get the
JSDocInfo attached to this node. |
Modifier and Type | Method and Description |
---|---|
Node |
Node.setJSDocInfo(JSDocInfo info)
Sets the
JSDocInfo attached to this node. |
Modifier and Type | Method and Description |
---|---|
JSDocInfo |
SimpleSlot.getJSDocInfo() |
JSDocInfo |
StaticSlot.getJSDocInfo()
Gets the JSDoc for this slot.
|
JSDocInfo |
Property.getJSDocInfo() |
JSDocInfo |
ProxyObjectType.getJSDocInfo() |
JSDocInfo |
ObjectType.getJSDocInfo()
Gets the docInfo for this type.
|
JSDocInfo |
JSType.getJSDocInfo()
Gets the docInfo for this type.
|
JSDocInfo |
ObjectType.getOwnPropertyJSDocInfo(String propertyName)
Gets the docInfo on the specified property on this type.
|
Modifier and Type | Method and Description |
---|---|
ObjectType |
JSTypeRegistry.createAnonymousObjectType(JSDocInfo info)
Create an anonymous object type.
|
void |
ProxyObjectType.setJSDocInfo(JSDocInfo info) |
void |
ObjectType.setJSDocInfo(JSDocInfo info)
Sets the docInfo for this type from the given
JSDocInfo . |
void |
NoObjectType.setPropertyJSDocInfo(String propertyName,
JSDocInfo info) |
void |
ProxyObjectType.setPropertyJSDocInfo(String propertyName,
JSDocInfo info) |
void |
ObjectType.setPropertyJSDocInfo(String propertyName,
JSDocInfo info)
Sets the docInfo for the specified property from the
JSDocInfo on its definition. |
Copyright © 2009-2014 Google. All Rights Reserved.