Uses of Class
com.google.javascript.rhino.JSDocInfo
-
-
Uses of JSDocInfo in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return JSDocInfo Modifier and Type Method Description static JSDocInfo
NodeUtil. getBestJSDocInfo(Node n)
Find the best JSDoc for the given node.JSDocInfo
AbstractVar. getJSDocInfo()
JSDocInfo
SymbolTable.Symbol. getJSDocInfo()
Methods in com.google.javascript.jscomp with parameters of type JSDocInfo Modifier and Type Method Description static com.google.common.collect.ImmutableList<ImplicitNullabilityCheck.Result>
ImplicitNullabilityCheck. findImplicitNullabilityResults(JSDocInfo info, NodeTraversal t)
Finds and returns all the JSDoc nodes inside the given JSDoc object whose nullability is not explict, using the NodeTraversal the necessary state (current scope, etc.)static Node
NodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info)
Creates a node representing a qualified name.static Node
NodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info, Token type)
Creates a node representing a qualified name.java.lang.String
JSDocInfoPrinter. print(JSDocInfo info)
void
CheckMissingOverrideTypes. reportMissingOverrideTypes(Node node, JSDocInfo completeJSDocInfo)
Emits error for a function or property declaration node with the replacement (complete) JSDoc. -
Uses of JSDocInfo in com.google.javascript.jscomp.parsing
Methods in com.google.javascript.jscomp.parsing that return JSDocInfo Modifier and Type Method Description static JSDocInfo
JsDocInfoParser. parseFileOverviewJsdoc(java.lang.String toParse)
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 ornull
if it failed.JSDocInfo
JsDocInfoParser. retrieveAndResetParsedJSDocInfo()
-
Uses of JSDocInfo in com.google.javascript.jscomp.serialization
Methods in com.google.javascript.jscomp.serialization that return JSDocInfo Modifier and Type Method Description static JSDocInfo
JSDocSerializer. convertJSDocInfoForOptimizations(JSDocInfo jsdoc)
Returns a variant of input JSDocInfo where fields not needed for optimizations are removedMethods in com.google.javascript.jscomp.serialization with parameters of type JSDocInfo Modifier and Type Method Description static JSDocInfo
JSDocSerializer. convertJSDocInfoForOptimizations(JSDocInfo jsdoc)
Returns a variant of input JSDocInfo where fields not needed for optimizations are removed -
Uses of JSDocInfo in com.google.javascript.rhino
Methods in com.google.javascript.rhino that return JSDocInfo Modifier and Type Method Description JSDocInfo
JSDocInfo.Builder. build()
Builds aJSDocInfo
object based on the populated information and returns it.JSDocInfo
JSDocInfo.Builder. build(boolean always)
Builds aJSDocInfo
object based on the populated information and returns it.JSDocInfo
JSDocInfo.Builder. buildAndReset()
Builds aJSDocInfo
object based on the populated information and returns it.JSDocInfo
JSDocInfo. clone()
JSDocInfo
JSDocInfo. clone(boolean cloneTypeNodes)
JSDocInfo
JSDocInfo. cloneAndReplaceTypeNames(java.util.Set<java.lang.String> names)
Clones this JSDoc but replaces the given names in any type related annotation with unknown type.JSDocInfo
Node. getJSDocInfo()
Get theJSDocInfo
attached to this node.JSDocInfo
StaticSlot. getJSDocInfo()
Gets the JSDoc for this slot.Methods in com.google.javascript.rhino with parameters of type JSDocInfo Modifier and Type Method Description static boolean
JSDocInfo. areEquivalent(JSDocInfo jsDoc1, JSDocInfo jsDoc2)
static Node
IR. cast(Node expr1, JSDocInfo jsdoc)
static JSDocInfo.Builder
JSDocInfo.Builder. copyFrom(JSDocInfo info)
static JSDocInfo.Builder
JSDocInfo.Builder. copyFromWithNewType(JSDocInfo info, JSTypeExpression typeExpression)
static JSDocInfo.Builder
JSDocInfo.Builder. maybeCopyFrom(JSDocInfo info)
static JSDocInfo.Builder
JSDocInfo.Builder. maybeCopyFromAndReplaceNames(JSDocInfo info, java.util.Set<java.lang.String> moduleLocalNamesToReplace)
Returns a JSDocInfo.Builder that contains a JSDoc in which all module local types (which may be inside@param
,@type
or@returns
are replaced with unknown.static JSDocInfo.Builder
JSDocInfo.Builder. maybeCopyFromWithNewType(JSDocInfo info, JSTypeExpression typeExpression)
Returns a JSDocInfo.Builder that contains a copy of the given JSDocInfo in which only the@type
field of the JSDocInfo is replaced with the given typeExpression.Node
Node. setJSDocInfo(JSDocInfo info)
Sets theJSDocInfo
attached to this node. -
Uses of JSDocInfo in com.google.javascript.rhino.jstype
Methods in com.google.javascript.rhino.jstype that return JSDocInfo Modifier and Type Method Description JSDocInfo
JSType. getJSDocInfo()
Gets the docInfo for this type.JSDocInfo
ObjectType. getJSDocInfo()
Gets the docInfo for this type.JSDocInfo
Property. getJSDocInfo()
JSDocInfo
ProxyObjectType. getJSDocInfo()
JSDocInfo
SimpleSlot. 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)
Methods in com.google.javascript.rhino.jstype with parameters of type JSDocInfo Modifier and Type Method Description ObjectType
JSTypeRegistry. createAnonymousObjectType(JSDocInfo info)
Create an anonymous object type.void
ObjectType. setJSDocInfo(JSDocInfo info)
Sets the docInfo for this type from the givenJSDocInfo
.void
ProxyObjectType. setJSDocInfo(JSDocInfo info)
void
NoObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)
void
ObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)
Sets the docInfo for the specified property from theJSDocInfo
on its definition.void
PrototypeObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)
void
ProxyObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)
-