UNPKG

1.51 kBTypeScriptView Raw
1import { DocNodeKind, DocNode, IDocNodeParameters, IDocNodeParsedParameters } from './DocNode';
2import { TokenSequence } from '../parser/TokenSequence';
3/**
4 * Constructor parameters for {@link DocBlockTag}.
5 */
6export interface IDocBlockTagParameters extends IDocNodeParameters {
7 tagName: string;
8}
9/**
10 * Constructor parameters for {@link DocBlockTag}.
11 */
12export interface IDocBlockTagParsedParameters extends IDocNodeParsedParameters {
13 tagName: string;
14 tagNameExcerpt: TokenSequence;
15}
16/**
17 * Represents a TSDoc block tag such as `@param` or `@public`.
18 */
19export declare class DocBlockTag extends DocNode {
20 private readonly _tagName;
21 private readonly _tagNameWithUpperCase;
22 private readonly _tagNameExcerpt;
23 /**
24 * Don't call this directly. Instead use {@link TSDocParser}
25 * @internal
26 */
27 constructor(parameters: IDocBlockTagParameters | IDocBlockTagParsedParameters);
28 /** @override */
29 get kind(): DocNodeKind | string;
30 /**
31 * The TSDoc tag name. TSDoc tag names start with an at-sign (`@`) followed
32 * by ASCII letters using "camelCase" capitalization.
33 */
34 get tagName(): string;
35 /**
36 * The TSDoc tag name in all capitals, which is used for performing
37 * case-insensitive comparisons or lookups.
38 */
39 get tagNameWithUpperCase(): string;
40 /** @override */
41 protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
42 getTokenSequence(): TokenSequence;
43}
44//# sourceMappingURL=DocBlockTag.d.ts.map
\No newline at end of file