Uses of Class
com.google.javascript.rhino.JSDocInfo
Packages that use JSDocInfo
Package
Description
-
Uses of JSDocInfo in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return JSDocInfoModifier and TypeMethodDescriptionstatic @Nullable JSDocInfoNodeUtil.getBestJSDocInfo(Node n) Find the best JSDoc for the given node.final @Nullable JSDocInfoAbstractVar.getJSDocInfo()SymbolTable.Symbol.getJSDocInfo()Methods in com.google.javascript.jscomp with parameters of type JSDocInfoModifier and TypeMethodDescriptionstatic 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, String name, Node value, JSDocInfo info) Creates a node representing a qualified name.static NodeNodeUtil.newQNameDeclaration(AbstractCompiler compiler, String name, Node value, JSDocInfo info, Token type) Creates a node representing a qualified name. -
Uses of JSDocInfo in com.google.javascript.jscomp.parsing
Methods in com.google.javascript.jscomp.parsing that return JSDocInfoModifier and TypeMethodDescriptionstatic JSDocInfoJsDocInfoParser.parseFileOverviewJsdoc(String toParse) @Nullable JSDocInfoJsDocInfoParser.parseInlineTypeDoc()Parse a description as a@type.static JSDocInfoJsDocInfoParser.parseJsdoc(String toParse) Parses a string containing a JsDoc declaration, returning the entire JSDocInfo if the parsing succeeded ornullif it failed.JsDocInfoParser.retrieveAndResetParsedJSDocInfo() -
Uses of JSDocInfo in com.google.javascript.jscomp.serialization
Methods in com.google.javascript.jscomp.serialization that return JSDocInfoModifier and TypeMethodDescriptionstatic JSDocInfoJSDocSerializer.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 JSDocInfoModifier and TypeMethodDescriptionstatic JSDocInfoJSDocSerializer.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 JSDocInfoModifier and TypeMethodDescriptionJSDocInfo.Builder.build()Builds aJSDocInfoobject based on the populated information and returns it.@Nullable JSDocInfoJSDocInfo.Builder.build(boolean always) Builds aJSDocInfoobject based on the populated information and returns it.JSDocInfo.Builder.buildAndReset()Builds aJSDocInfoobject based on the populated information and returns it.JSDocInfo.clone()JSDocInfo.clone(boolean cloneTypeNodes) JSDocInfo.cloneAndReplaceTypeNames(Set<String> names) Clones this JSDoc but replaces the given names in any type related annotation with unknown type.final @Nullable JSDocInfoNode.getJSDocInfo()Get theJSDocInfoattached to this node.StaticSlot.getJSDocInfo()Gets the JSDoc for this slot.Methods in com.google.javascript.rhino with parameters of type JSDocInfoModifier and TypeMethodDescriptionstatic booleanJSDocInfo.areEquivalent(JSDocInfo jsDoc1, JSDocInfo jsDoc2) static Nodestatic JSDocInfo.Builderstatic JSDocInfo.BuilderJSDocInfo.Builder.copyFromWithNewType(JSDocInfo info, JSTypeExpression typeExpression) static JSDocInfo.BuilderJSDocInfo.Builder.maybeCopyFrom(@Nullable JSDocInfo info) static JSDocInfo.BuilderJSDocInfo.Builder.maybeCopyFromAndReplaceNames(JSDocInfo info, Set<String> moduleLocalNamesToReplace) Returns a JSDocInfo.Builder that contains a JSDoc in which all module local types (which may be inside@param,@typeor@returnsare replaced with unknown.static JSDocInfo.BuilderJSDocInfo.Builder.maybeCopyFromWithNewType(JSDocInfo info, JSTypeExpression typeExpression) Returns a JSDocInfo.Builder that contains a copy of the given JSDocInfo in which only the@typefield of the JSDocInfo is replaced with the given typeExpression.final 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 JSDocInfoModifier and TypeMethodDescriptionJSType.getJSDocInfo()Gets the docInfo for this type.ObjectType.getJSDocInfo()Gets the docInfo for this type.Property.getJSDocInfo()final JSDocInfoProxyObjectType.getJSDocInfo()SimpleSlot.getJSDocInfo()final @Nullable JSDocInfoObjectType.getOwnPropertyJSDocInfo(String propertyName) Gets the docInfo on the specified property on this type.final @Nullable JSDocInfoObjectType.getPropertyJSDocInfo(String propertyName) Methods in com.google.javascript.rhino.jstype with parameters of type JSDocInfoModifier and TypeMethodDescriptionJSTypeRegistry.createAnonymousObjectType(@Nullable JSDocInfo info) Create an anonymous object type.voidObjectType.setJSDocInfo(JSDocInfo info) Sets the docInfo for this type from the givenJSDocInfo.final voidProxyObjectType.setJSDocInfo(JSDocInfo info) final voidNoObjectType.setPropertyJSDocInfo(String propertyName, JSDocInfo info) voidObjectType.setPropertyJSDocInfo(String propertyName, JSDocInfo info) Sets the docInfo for the specified property from theJSDocInfoon its definition.voidPrototypeObjectType.setPropertyJSDocInfo(String propertyName, JSDocInfo info) final voidProxyObjectType.setPropertyJSDocInfo(String propertyName, JSDocInfo info)