AbstractDoc
Direct Subclass:
Abstract Doc Class.
TODO:
- rename this class name.
Constructor Summary
Public Constructor | ||
public |
constructor(ast: AST, node: ASTNode, pathResolver: PathResolver, commentTags: Tag[]) create instance. |
Member Summary
Public Members | ||
public get |
|
Private Members | ||
private |
_ast: * |
|
private |
_commentTags: * |
|
private |
_node: * |
|
private |
|
|
private |
_value: {} |
Method Summary
Protected Methods | ||
protected |
_apply() apply doc comment. |
|
protected |
find last tag. |
Private Methods | ||
private |
decide |
|
private |
_$access() decide |
|
private abstract |
_$async() decide |
|
private abstract |
decide |
|
private |
decide |
|
private |
decide |
|
private |
_$desc() decide |
|
private |
_$emits() decide |
|
private |
decide |
|
private |
decide |
|
private |
_$export() decide |
|
private abstract |
decide |
|
private |
_$ignore() decide |
|
private |
decide |
|
private |
decide |
|
private abstract |
_$kind() decide |
|
private |
decide |
|
private |
decide |
|
private |
decide |
|
private abstract |
_$member() decide |
|
private abstract |
decide |
|
private abstract |
_$name() decide |
|
private |
decide |
|
private |
_$param() decide |
|
private |
avoid unknown tag. |
|
private |
decide |
|
private |
avoid unknown tag. |
|
private |
decide |
|
private |
_$public() avoid unknown tag. |
|
private |
_$return() decide |
|
private |
_$see() decide |
|
private |
_$since() decide |
|
private |
_$static() decide |
|
private |
_$throws() decide |
|
private |
_$todo() decide |
|
private |
_$type() decide |
|
private |
decide |
|
private |
decide |
|
private abstract |
decide |
|
private |
decide |
|
private |
find all tags. |
|
private |
_findAllTagValues(names: string[]): *[] | null find all tag values. |
|
private |
_findClassLongname(className: string): string find class in same file, import or external. |
|
private |
_findTagValue(names: string[]): * | null find ta value. |
|
private |
_flattenMemberExpression(node: ASTNode): string flatten member expression property name. |
|
private |
_resolveLongname(name: string): string resolve long name. |
Public Constructors
public constructor(ast: AST, node: ASTNode, pathResolver: PathResolver, commentTags: Tag[]) source
create instance.
Params:
Name | Type | Attribute | Description |
ast | AST | this is AST that contains this doc. |
|
node | ASTNode | this is self node. |
|
pathResolver | PathResolver | this is file path resolver that contains this doc. |
|
commentTags | Tag[] | this is tags that self node has. |
Public Members
Private Members
private _ast: * source
private _commentTags: * source
private _node: * source
private _pathResolver: * source
private _value: {} source
Protected Methods
protected _find(names: string[]): Tag | null source
find last tag.
Params:
Name | Type | Attribute | Description |
names | string[] | tag names. |
Private Methods
private _findAll(names: string[]): Tag[] | null source
find all tags.
Params:
Name | Type | Attribute | Description |
names | string[] | tag names. |
private _findAllTagValues(names: string[]): *[] | null source
find all tag values.
Params:
Name | Type | Attribute | Description |
names | string[] | tag names. |
private _findClassLongname(className: string): string source
find class in same file, import or external.
Params:
Name | Type | Attribute | Description |
className | string | target class name. |
private _findTagValue(names: string[]): * | null source
find ta value.
Params:
Name | Type | Attribute | Description |
names | string[] | tag names. |