Home Manual Reference Source Test Repository
import FunctionDoc from 'esdoc/src/Doc/FunctionDoc.js'
public class | source

FunctionDoc

Extends:

AbstractDoc → FunctionDoc

Doc Class from Function declaration AST node.

Method Summary

Public Methods
public

check generator property in self node

public

specify function to kind.

public

take out self name from file path

public

take out self name from self node

public

if @param is not exists, guess type of param by using self node.

public

if @return is not exists, guess type of return by using self node.

Inherited Summary

From class AbstractDoc
public get
private

_ast: *

private
private

_node: *

private
private

_value: *

public

for @_content, does not need to use this tag

public

for @_export, does not need to use this tag

public

for @_generator, does not need to use this tag

public

for @_importPath, does not need to use this tag

public

for @_importStyle, does not need to use this tag

public

for @_kind, does not need to use this tag

public

for @_lineNumber, does not need to use this tag

public

for @_longname, does not need to use this tag

public

for @_member.

public

for @_memberof, does not need to use this tag

public

for @_name, does not need to use this tag

public

for @_pseudoExport, does not need to use this tag.

public

for @_static, does not need to use this tag

public

for @_undocument, does not need to use this tag

public

for @_unknown, does not need to use this tag

public

for @_variation

public

for @abstract.

public

for @access, @public, @private, @protected

public

for @deprecated

public

for @desc

public

for @emits.

public

for @example.

public

for @experimental

public

for @ignore.

public

for @listens.

public

for @voerride.

public

for @param.

public

for @private

public

for @property.

public

for @protected

public

for @public

public

for @return, @returns.

public

for @see.

public

for @since

public

for @throws.

public

for @todo.

public

for @type.

public

for @version

private

_apply()

apply doc comment.

private

_find(names: string[]): Tag | null

find last tag.

private

_findAll(names: string[]): Tag[] | null

find all tags.

private

_findAllTagValues(names: string[]): *[] | null

find all tag values.

private

find class in same file, import or external.

private

_findTagValue(names: string[]): * | null

find ta value.

private

flatten member expression property name.

private

resolve long name.

Public Methods

public ['@_generator']() source

check generator property in self node

Override:

AbstractDoc#['@_generator']

public ['@_kind']() source

specify function to kind.

Override:

AbstractDoc#['@_kind']

public ['@_memberof']() source

take out self name from file path

Override:

AbstractDoc#['@_memberof']

public ['@_name']() source

take out self name from self node

Override:

AbstractDoc#['@_name']

public ['@param']() source

if @param is not exists, guess type of param by using self node.

Override:

AbstractDoc#['@param']

public ['@return']() source

if @return is not exists, guess type of return by using self node.

Override:

AbstractDoc#['@return']