Uses of Class
com.google.javascript.rhino.JSDocInfo
-
Packages that use JSDocInfo Package Description com.google.javascript.jscomp Provides the core compiler and its public API.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. -
-
Uses of JSDocInfo in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return JSDocInfo Modifier and Type Method Description static JSDocInfoNodeUtil. getBestJSDocInfo(Node n)Find the best JSDoc for the given node.JSDocInfoAbstractVar. getJSDocInfo()JSDocInfoSymbolTable.Symbol. getJSDocInfo()JSDocInfoTypedScope. getJsdocOfTypeDeclaration(java.lang.String typeName)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 NodeNodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info)Creates a node representing a qualified name.static NodeNodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info, Token type)Creates a node representing a qualified name.java.lang.StringJSDocInfoPrinter. print(JSDocInfo info) -
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 JSDocInfoJsDocInfoParser. parseFileOverviewJsdoc(java.lang.String toParse)JSDocInfoJsDocInfoParser. parseInlineTypeDoc()Parse a description as a@type.static JSDocInfoJsDocInfoParser. parseJsdoc(java.lang.String toParse)Parses a string containing a JsDoc declaration, returning the entire JSDocInfo if the parsing succeeded ornullif it failed.JSDocInfoJsDocInfoParser. retrieveAndResetParsedJSDocInfo() -
Uses of JSDocInfo in com.google.javascript.rhino
Methods in com.google.javascript.rhino that return JSDocInfo Modifier and Type Method Description JSDocInfoJSDocInfoBuilder. build()Builds aJSDocInfoobject based on the populated information and returns it.JSDocInfoJSDocInfoBuilder. build(boolean always)Builds aJSDocInfoobject based on the populated information and returns it.JSDocInfoJSDocInfoBuilder. buildAndReset()Builds aJSDocInfoobject based on the populated information and returns it.JSDocInfoJSDocInfo. clone()JSDocInfoJSDocInfo. clone(boolean cloneTypeNodes)JSDocInfoJSDocInfo. cloneAndReplaceTypeNames(java.util.Set<java.lang.String> names)Clones this JSDoc but replaces the given names in any type related annotation with unknown type.JSDocInfoJSDocInfo. cloneWithNewType(boolean cloneTypeNodes, JSTypeExpression typeExpression)JSDocInfoNode. getJSDocInfo()Get theJSDocInfoattached to this node.JSDocInfoStaticSlot. getJSDocInfo()Gets the JSDoc for this slot.Methods in com.google.javascript.rhino with parameters of type JSDocInfo Modifier and Type Method Description static booleanJSDocInfo. areEquivalent(JSDocInfo jsDoc1, JSDocInfo jsDoc2)static NodeIR. cast(Node expr1, JSDocInfo jsdoc)static JSDocInfoBuilderJSDocInfoBuilder. copyFrom(JSDocInfo info)static JSDocInfoBuilderJSDocInfoBuilder. copyFromWithNewType(JSDocInfo info, JSTypeExpression typeExpression)static JSDocInfoBuilderJSDocInfoBuilder. maybeCopyFrom(JSDocInfo info)static JSDocInfoBuilderJSDocInfoBuilder. maybeCopyFromAndReplaceNames(JSDocInfo info, java.util.Set<java.lang.String> moduleLocalNamesToReplace)Returns a JSDocInfoBuilder that contains a JSDoc in which all module local types (which may be inside@param,@typeor@returnsare replaced with unknown.static JSDocInfoBuilderJSDocInfoBuilder. maybeCopyFromWithNewType(JSDocInfo info, JSTypeExpression typeExpression)Returns a JSDocInfoBuilder that contains a copy of the given JSDocInfo in which only the@typefield of the JSDocInfo is replaced with the given typeExpression.voidJSDocInfoBuilder. mergePropertyBitfieldFrom(JSDocInfo other)NodeNode. setJSDocInfo(JSDocInfo info)Sets theJSDocInfoattached 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 JSDocInfoJSType. getJSDocInfo()Gets the docInfo for this type.JSDocInfoObjectType. getJSDocInfo()Gets the docInfo for this type.JSDocInfoProperty. getJSDocInfo()JSDocInfoProxyObjectType. getJSDocInfo()JSDocInfoSimpleSlot. getJSDocInfo()JSDocInfoObjectType. getOwnPropertyJSDocInfo(java.lang.String propertyName)Gets the docInfo on the specified property on this type.JSDocInfoObjectType. getPropertyJSDocInfo(java.lang.String propertyName)Methods in com.google.javascript.rhino.jstype with parameters of type JSDocInfo Modifier and Type Method Description ObjectTypeJSTypeRegistry. createAnonymousObjectType(JSDocInfo info)Create an anonymous object type.voidObjectType. setJSDocInfo(JSDocInfo info)Sets the docInfo for this type from the givenJSDocInfo.voidProxyObjectType. setJSDocInfo(JSDocInfo info)voidNoObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)voidObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)Sets the docInfo for the specified property from theJSDocInfoon its definition.voidPrototypeObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)voidProxyObjectType. setPropertyJSDocInfo(java.lang.String propertyName, JSDocInfo info)
-