1 | import { DocNode, type IDocNodeParameters, DocNodeKind } from './DocNode';
|
2 | import type { TokenSequence } from '../parser/TokenSequence';
|
3 |
|
4 |
|
5 |
|
6 | export declare enum ExcerptKind {
|
7 | Spacing = "Spacing",
|
8 | BlockTag = "BlockTag",
|
9 | CodeSpan_OpeningDelimiter = "CodeSpan_OpeningDelimiter",
|
10 | CodeSpan_Code = "CodeSpan_Code",
|
11 | CodeSpan_ClosingDelimiter = "CodeSpan_ClosingDelimiter",
|
12 | DeclarationReference_PackageName = "DeclarationReference_PackageName",
|
13 | DeclarationReference_ImportPath = "DeclarationReference_ImportPath",
|
14 | DeclarationReference_ImportHash = "DeclarationReference_ImportHash",
|
15 | |
16 |
|
17 |
|
18 |
|
19 | ErrorText = "ErrorText",
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 | NonstandardText = "NonstandardText",
|
26 | EscapedText = "EscapedText",
|
27 | FencedCode_OpeningFence = "FencedCode_OpeningFence",
|
28 | FencedCode_Language = "FencedCode_Language",
|
29 | FencedCode_Code = "FencedCode_Code",
|
30 | FencedCode_ClosingFence = "FencedCode_ClosingFence",
|
31 | HtmlAttribute_Name = "HtmlAttribute_Name",
|
32 | HtmlAttribute_Equals = "HtmlAttribute_Equals",
|
33 | HtmlAttribute_Value = "HtmlAttribute_Value",
|
34 | HtmlEndTag_OpeningDelimiter = "HtmlEndTag_OpeningDelimiter",
|
35 | HtmlEndTag_Name = "HtmlEndTag_Name",
|
36 | HtmlEndTag_ClosingDelimiter = "HtmlEndTag_ClosingDelimiter",
|
37 | HtmlStartTag_OpeningDelimiter = "HtmlStartTag_OpeningDelimiter",
|
38 | HtmlStartTag_Name = "HtmlStartTag_Name",
|
39 | HtmlStartTag_ClosingDelimiter = "HtmlStartTag_ClosingDelimiter",
|
40 | InlineTag_OpeningDelimiter = "InlineTag_OpeningDelimiter",
|
41 | InlineTag_TagName = "InlineTag_TagName",
|
42 | InlineTag_TagContent = "InlineTag_TagContent",
|
43 | InlineTag_ClosingDelimiter = "InlineTag_ClosingDelimiter",
|
44 | LinkTag_UrlDestination = "LinkTag_UrlDestination",
|
45 | LinkTag_Pipe = "LinkTag_Pipe",
|
46 | LinkTag_LinkText = "LinkTag_LinkText",
|
47 | MemberIdentifier_LeftQuote = "MemberIdentifier_LeftQuote",
|
48 | MemberIdentifier_Identifier = "MemberIdentifier_Identifier",
|
49 | MemberIdentifier_RightQuote = "MemberIdentifier_RightQuote",
|
50 | MemberReference_Dot = "MemberReference_Dot",
|
51 | MemberReference_LeftParenthesis = "MemberReference_LeftParenthesis",
|
52 | MemberReference_Colon = "MemberReference_Colon",
|
53 | MemberReference_RightParenthesis = "MemberReference_RightParenthesis",
|
54 | MemberSelector = "MemberSelector",
|
55 | DocMemberSymbol_LeftBracket = "DocMemberSymbol_LeftBracket",
|
56 | DocMemberSymbol_RightBracket = "DocMemberSymbol_RightBracket",
|
57 | ParamBlock_ParameterName = "ParamBlock_ParameterName",
|
58 | ParamBlock_Hyphen = "ParamBlock_Hyphen",
|
59 | PlainText = "PlainText",
|
60 | SoftBreak = "SoftBreak"
|
61 | }
|
62 |
|
63 |
|
64 |
|
65 | export interface IDocExcerptParameters extends IDocNodeParameters {
|
66 | excerptKind: ExcerptKind;
|
67 | content: TokenSequence;
|
68 | }
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 | export declare class DocExcerpt extends DocNode {
|
84 | private readonly _excerptKind;
|
85 | private readonly _content;
|
86 | |
87 |
|
88 |
|
89 |
|
90 | constructor(parameters: IDocExcerptParameters);
|
91 | /** @override */
|
92 | get kind(): DocNodeKind | string;
|
93 | /**
|
94 | * Indicates the kind of DocExcerpt.
|
95 | */
|
96 | get excerptKind(): ExcerptKind;
|
97 | /**
|
98 | * The input token sequence corresponding to this excerpt.
|
99 | * @remarks
|
100 | * Note that a token sequence can span multiple input lines and may contain gaps, for example to skip the `*`
|
101 | * character that starts a new TSDoc comment line.
|
102 | */
|
103 | get content(): TokenSequence;
|
104 | }
|
105 | //# sourceMappingURL=DocExcerpt.d.ts.map |
\ | No newline at end of file |