Home Manual Reference Source Test Repository
public class | source

LintDocBuilder

Extends:

DocBuilder → LintDocBuilder

Lint Output Builder class.

Test:

Method Summary

Public Methods
public

exec()

execute building output.

Private Methods
private

get variable names of method argument.

private

get variable names of method argument.

private

_match(codeParams: *, docParams: *): boolean

private

_showResult(results: Object[])

show invalid lint code.

Inherited Summary

From class DocBuilder
private

_config: *

private

_data: *

public abstract

exec(callback: function)

execute building output.

private
this method was deprecated.

build coverage html.

private

build deprecated html.

private

build detail output html by docs.

private

_buildDetailHTML(doc: DocObject, kind: string, title: string, isStatic: boolean): string

build detail output html by parent doc.

private

_buildDocLinkHTML(longname: string, text: string, inner: boolean, kind: string): string

build html link to identifier.

private

_buildDocsLinkHTML(longnames: string[], text: string, inner: boolean, separator: string): string

build html links to identifiers

private

build experimental html.

private

build html link to file page.

private

build common layout output.

private

build common navigation output.

private

build method of ancestor class link html.

private

_buildProperties(properties: ParsedParam[], title: string): IceCap

build properties output.

private

build identifier signature html.

private

_buildSummaryDoc(docs: DocObject[], title: string, innerLink: boolean): IceCap

build summary output html by docs.

private

_buildSummaryHTML(doc: DocObject, kind: string, title: string, isStatic: boolean): string

build summary output html by parent doc.

private

build html link of type.

private

_find(cond: ...Object): DocObject[]

find doc object.

private

_findAccessDocs(doc: DocObject, kind: string, isStatic: boolean): Array[]

find doc object for each access.

private

_findAllIdentifiersKindGrouping(): {class: DocObject[], interface: DocObject[], function: DocObject[], variable: DocObject[], typedef: DocObject[], external: DocObject[]}

find all identifiers with kind grouping.

private

_findByName(name: string, kind: string): DocObject[]

fuzzy find doc object by name.

private

_getBaseUrl(fileName: string): string

get base url html page.

private

_getInfo(): {title: string, version: string, url: string}

get target's essential info.

private

get file name of output html page.

private

get output html page title.

private

gat url of output html page.

private

_orderedFind(order: string, cond: ...Object): DocObject[]

find doc objects that is ordered.

private

read html template.

Public Methods

public exec() source

execute building output.

Override:

DocBuilder#exec

Private Methods

private _getParamsFromDoc(doc: DocObject): string[] source

get variable names of method argument.

Params:

NameTypeAttributeDescription
doc DocObject

target doc object.

Return:

string[]

variable names.

private _getParamsFromNode(node: ASTNode): string[] source

get variable names of method argument.

Params:

NameTypeAttributeDescription
node ASTNode

target node.

Return:

string[]

variable names.

private _match(codeParams: *, docParams: *): boolean source

Params:

NameTypeAttributeDescription
codeParams *
docParams *

Return:

boolean

private _showResult(results: Object[]) source

show invalid lint code.

Params:

NameTypeAttributeDescription
results Object[]

target results.

results[].doc DocObject
results[].node ASTNode
results[].codeParams string[]
results[].docParams string[]