jsdoc/doclet.Doclet(docletSrc, metaopt)

Represents a single JSDoc comment.

Constructor

new Doclet(docletSrc, metaopt)

Create a doclet.

Parameters:
Name Type Description
docletSrc string

The raw source code of the jsdoc comment.

metaopt object

Properties describing the code related to this comment.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 259

Namespaces

meta

Members

augments string[]

A list of symbols that are augmented by this one, if any.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 440

borrowed string[]

A list of symbols that are borrowed by this one, if any.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 416

comment

The original text of the comment from the source code.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 270

longname string

The fully resolved symbol name.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 364

memberof string

The longname of the symbol that contains this one, if any.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 350

mixes string[]

A list of symbols that are mixed into this one, if any.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 426

Methods

addTag(title, textopt)

Add a tag to the doclet.

Parameters:
Name Type Description
title string

The title of the tag being added.

textopt string

The text of the tag being added.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 324

augment(base)

Add a symbol to the doclet's augments array.

Parameters:
Name Type Description
base string

The longname of the base symbol.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 435

borrow(source, target)

Add a symbol to this doclet's borrowed array.

Parameters:
Name Type Description
source string

The longname of the symbol that is the source.

target string

The name the symbol is being assigned to.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 404

postProcess()

Called once after all tags have been added.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 286

setLongname(name)

Set the doclet's longname property.

Parameters:
Name Type Description
name string

The longname for the doclet.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 359

setMemberof(sid)

Set the doclet's memberof property.

Parameters:
Name Type Description
sid string

The longname of the doclet's parent symbol.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 345

setMeta(meta)

Set the meta property of this doclet.

Parameters:
Name Type Description
meta object
Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 449

setScope(scope)

Set the doclet's scope property. Must correspond to a scope name that is defined in
module:jsdoc/name.SCOPE.NAMES.

Parameters:
Name Type Description
scope module:jsdoc/name.SCOPE.NAMES

The scope for the doclet relative to the
symbol's parent.

Source:
node_modules/jsdoc/lib/jsdoc/doclet.js, line 378
Throws:

If the scope name is not recognized.

Type
Error

Licensed under the Apache License 2.0

Documentation generated by JSDoc 4.0.2 using Docolatte theme