UNPKG

2.15 kBTypeScriptView Raw
1import { IDocNodeParameters, DocNode, IDocNodeParsedParameters } from './DocNode';
2import { TokenSequence } from '../parser/TokenSequence';
3/**
4 * Constructor parameters for {@link DocInlineTagBase}.
5 */
6export interface IDocInlineTagBaseParameters extends IDocNodeParameters {
7 tagName: string;
8}
9/**
10 * Constructor parameters for {@link DocInlineTagBase}.
11 */
12export interface IDocInlineTagBaseParsedParameters extends IDocNodeParsedParameters {
13 openingDelimiterExcerpt: TokenSequence;
14 tagNameExcerpt: TokenSequence;
15 tagName: string;
16 spacingAfterTagNameExcerpt?: TokenSequence;
17 closingDelimiterExcerpt: TokenSequence;
18}
19/**
20 * The abstract base class for {@link DocInlineTag}, {@link DocLinkTag}, and {@link DocInheritDocTag}.
21 */
22export declare abstract class DocInlineTagBase extends DocNode {
23 private readonly _openingDelimiterExcerpt;
24 private readonly _tagName;
25 private readonly _tagNameWithUpperCase;
26 private readonly _tagNameExcerpt;
27 private readonly _spacingAfterTagNameExcerpt;
28 private readonly _closingDelimiterExcerpt;
29 /**
30 * Don't call this directly. Instead use {@link TSDocParser}
31 * @internal
32 */
33 constructor(parameters: IDocInlineTagBaseParameters | IDocInlineTagBaseParsedParameters);
34 /**
35 * The TSDoc tag name. TSDoc tag names start with an at-sign (`@`) followed
36 * by ASCII letters using "camelCase" capitalization.
37 *
38 * @remarks
39 * For example, if the inline tag is `{@link Guid.toString | the toString() method}`
40 * then the tag name would be `@link`.
41 */
42 get tagName(): string;
43 /**
44 * The TSDoc tag name in all capitals, which is used for performing
45 * case-insensitive comparisons or lookups.
46 */
47 get tagNameWithUpperCase(): string;
48 /** @override @sealed */
49 protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
50 /**
51 * Allows child classes to replace the tagContentParticle with a more detailed
52 * set of nodes.
53 * @virtual
54 */
55 protected abstract getChildNodesForContent(): ReadonlyArray<DocNode | undefined>;
56}
57//# sourceMappingURL=DocInlineTagBase.d.ts.map
\No newline at end of file