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.
|
JSDocInfo |
SymbolTable.Symbol.getJSDocInfo() |
JSDocInfo |
AbstractVar.getJSDocInfo() |
JSDocInfo |
TypedScope.getJsdocOfTypeDeclaration(java.lang.String typeName) |
Modifier and Type | Method and Description |
---|---|
static Node |
NodeUtil.newQNameDeclaration(AbstractCompiler compiler,
java.lang.String name,
Node value,
JSDocInfo info)
Creates a node representing a qualified name.
|
java.lang.String |
JSDocInfoPrinter.print(JSDocInfo info) |
Modifier and Type | Method and Description |
---|---|
JSDocInfo |
JSType.getJSDocInfo() |
JSDocInfo |
JSType.getOwnPropertyJSDocInfo(java.lang.String propertyName) |
JSDocInfo |
NominalType.getPropertyJsdoc(java.lang.String pname) |
JSDocInfo |
JSType.getPropertyJSDocInfo(java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
JSType |
JSTypeCreatorFromJSDoc.getDeclaredTypeOfNode(JSDocInfo jsdoc,
RawNominalType ownerType,
DeclaredTypeRegistry registry) |
JSTypeCreatorFromJSDoc.FunctionAndSlotType |
JSTypeCreatorFromJSDoc.getFunctionType(JSDocInfo jsdoc,
java.lang.String functionName,
Node declNode,
RawNominalType constructorType,
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.
|
static boolean |
JSTypeCreatorFromJSDoc.isRestArg(JSDocInfo funJsdoc,
java.lang.String formalParamName) |
Modifier and Type | Method and Description |
---|---|
JSDocInfo |
JsDocInfoParser.parseInlineTypeDoc()
Parse a description as a
@type . |
static JSDocInfo |
JsDocInfoParser.parseJsdoc(java.lang.String toParse)
Parses a string containing a JsDoc declaration, returning the entire JSDocInfo
if the parsing succeeded or
null if it failed. |
Modifier and Type | Method and Description |
---|---|
JSDocInfo |
JSDocInfoBuilder.build()
Builds a
JSDocInfo object based on the populated information and returns it. |
JSDocInfo |
JSDocInfoBuilder.build(boolean always)
Builds a
JSDocInfo object based on the populated information and
returns it. |
JSDocInfo |
JSDocInfoBuilder.buildAndReset()
Builds a
JSDocInfo object based on the populated information and
returns it. |
JSDocInfo |
JSDocInfo.clone() |
JSDocInfo |
JSDocInfo.clone(boolean cloneTypeNodes) |
JSDocInfo |
TypeI.getJSDocInfo() |
JSDocInfo |
Node.getJSDocInfo()
Get the
JSDocInfo attached to this node. |
JSDocInfo |
StaticSlot.getJSDocInfo()
Gets the JSDoc for this slot.
|
JSDocInfo |
TypeIEnv.getJsdocOfTypeDeclaration(java.lang.String typeName)
Returns the jsdoc at the definition site of the type represented by typeName.
|
JSDocInfo |
ObjectTypeI.getOwnPropertyJSDocInfo(java.lang.String propertyName)
TODO(dimvar): rename methods in this file that use the phrase OwnProp to NonInheritedProp,
to avoid ambiguity with the built-in methods such as hasOwnProperty, which have
different semantics.
|
JSDocInfo |
ObjectTypeI.getPropertyJSDocInfo(java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
static boolean |
JSDocInfo.areEquivalent(JSDocInfo jsDoc1,
JSDocInfo jsDoc2) |
static Node |
IR.cast(Node expr1,
JSDocInfo jsdoc) |
static JSDocInfoBuilder |
JSDocInfoBuilder.copyFrom(JSDocInfo info) |
static JSDocInfoBuilder |
JSDocInfoBuilder.maybeCopyFrom(JSDocInfo info) |
void |
JSDocInfoBuilder.mergePropertyBitfieldFrom(JSDocInfo other) |
Node |
Node.setJSDocInfo(JSDocInfo info)
Sets the
JSDocInfo attached to this node. |
Modifier and Type | Method and Description |
---|---|
JSDocInfo |
ProxyObjectType.getJSDocInfo() |
JSDocInfo |
SimpleSlot.getJSDocInfo() |
JSDocInfo |
ObjectType.getJSDocInfo()
Gets the docInfo for this type.
|
JSDocInfo |
JSType.getJSDocInfo()
Gets the docInfo for this type.
|
JSDocInfo |
Property.getJSDocInfo() |
JSDocInfo |
ObjectType.getOwnPropertyJSDocInfo(java.lang.String propertyName)
Gets the docInfo on the specified property on this type.
|
JSDocInfo |
ObjectType.getPropertyJSDocInfo(java.lang.String propertyName) |
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 |
PrototypeObjectType.setPropertyJSDocInfo(java.lang.String propertyName,
JSDocInfo info) |
void |
ProxyObjectType.setPropertyJSDocInfo(java.lang.String propertyName,
JSDocInfo info) |
void |
ObjectType.setPropertyJSDocInfo(java.lang.String propertyName,
JSDocInfo info)
Sets the docInfo for the specified property from the
JSDocInfo on its definition. |
void |
NoObjectType.setPropertyJSDocInfo(java.lang.String propertyName,
JSDocInfo info) |
Copyright © 2009-2018 Google. All Rights Reserved.