1 | import { DocNode, DocNodeKind, type IDocNodeParameters, type IDocNodeParsedParameters } from './DocNode';
|
2 | import type { TokenSequence } from '../parser/TokenSequence';
|
3 |
|
4 |
|
5 |
|
6 | export interface IDocHtmlAttributeParameters extends IDocNodeParameters {
|
7 | name: string;
|
8 | spacingAfterName?: string;
|
9 | spacingAfterEquals?: string;
|
10 | value: string;
|
11 | spacingAfterValue?: string;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 | export interface IDocHtmlAttributeParsedParameters extends IDocNodeParsedParameters {
|
17 | nameExcerpt: TokenSequence;
|
18 | spacingAfterNameExcerpt?: TokenSequence;
|
19 | equalsExcerpt: TokenSequence;
|
20 | spacingAfterEqualsExcerpt?: TokenSequence;
|
21 | valueExcerpt: TokenSequence;
|
22 | spacingAfterValueExcerpt?: TokenSequence;
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare class DocHtmlAttribute extends DocNode {
|
30 | private _name;
|
31 | private readonly _nameExcerpt;
|
32 | private _spacingAfterName;
|
33 | private readonly _spacingAfterNameExcerpt;
|
34 | private readonly _equalsExcerpt;
|
35 | private _spacingAfterEquals;
|
36 | private readonly _spacingAfterEqualsExcerpt;
|
37 | private _value;
|
38 | private readonly _valueExcerpt;
|
39 | private _spacingAfterValue;
|
40 | private readonly _spacingAfterValueExcerpt;
|
41 | |
42 |
|
43 |
|
44 |
|
45 | constructor(parameters: IDocHtmlAttributeParameters | IDocHtmlAttributeParsedParameters);
|
46 | /** @override */
|
47 | get kind(): DocNodeKind | string;
|
48 | /**
|
49 | * The HTML attribute name.
|
50 | */
|
51 | get name(): string;
|
52 | /**
|
53 | * Explicit whitespace that a renderer should insert after the HTML attribute name.
|
54 | * If undefined, then the renderer can use a formatting rule to generate appropriate spacing.
|
55 | */
|
56 | get spacingAfterName(): string | undefined;
|
57 | /**
|
58 | * Explicit whitespace that a renderer should insert after the "=".
|
59 | * If undefined, then the renderer can use a formatting rule to generate appropriate spacing.
|
60 | */
|
61 | get spacingAfterEquals(): string | undefined;
|
62 | /**
|
63 | * The HTML attribute value.
|
64 | */
|
65 | get value(): string;
|
66 | /**
|
67 | * Explicit whitespace that a renderer should insert after the HTML attribute name.
|
68 | * If undefined, then the renderer can use a formatting rule to generate appropriate spacing.
|
69 | */
|
70 | get spacingAfterValue(): string | undefined;
|
71 | /** @override */
|
72 | protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
|
73 | }
|
74 | //# sourceMappingURL=DocHtmlAttribute.d.ts.map |
\ | No newline at end of file |