1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { Feature, HtmlAstNode, Resolvable, SourceRange, Warning } from '../model/model';
|
15 | import { Document } from './document';
|
16 | import { ImmutableArray, ImmutableMap, ImmutableSet } from './immutable';
|
17 | export interface Attribute {
|
18 | readonly name: string;
|
19 | readonly sourceRange: SourceRange;
|
20 | readonly nameSourceRange: SourceRange;
|
21 | readonly valueSourceRange: SourceRange | undefined;
|
22 | readonly value?: string;
|
23 | }
|
24 | declare module '../model/queryable' {
|
25 | interface FeatureKindMap {
|
26 | 'element-reference': ElementReference;
|
27 | }
|
28 | }
|
29 | export declare class ElementReference implements Feature {
|
30 | readonly tagName: string;
|
31 | readonly attributes: ImmutableMap<string, Attribute>;
|
32 | readonly sourceRange: SourceRange;
|
33 | readonly astNode: HtmlAstNode;
|
34 | readonly warnings: ImmutableArray<Warning>;
|
35 | readonly kinds: ImmutableSet<string>;
|
36 | constructor(scannedRef: ScannedElementReference, _document: Document);
|
37 | readonly identifiers: ImmutableSet<string>;
|
38 | }
|
39 | export declare class ScannedElementReference implements Resolvable {
|
40 | readonly tagName: string;
|
41 | readonly attributes: Map<string, Attribute>;
|
42 | readonly sourceRange: SourceRange;
|
43 | readonly astNode: HtmlAstNode;
|
44 | readonly warnings: ImmutableArray<Warning>;
|
45 | constructor(tagName: string, sourceRange: SourceRange, ast: HtmlAstNode);
|
46 | resolve(document: Document): ElementReference;
|
47 | }
|