1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { ASTNode } from 'parse5';
|
15 | import { HtmlVisitor, ParsedHtmlDocument } from '../html/html-document';
|
16 | import { HtmlScanner } from '../html/html-scanner';
|
17 | import { Feature, HtmlAstNode, Resolvable, Slot, SourceRange, Warning } from '../model/model';
|
18 | import { HtmlDatabindingExpression, Template } from './expression-scanner';
|
19 | import { LocalId } from './polymer-element';
|
20 | export declare class ScannedDomModule implements Resolvable {
|
21 | id: string | null;
|
22 | node: ASTNode;
|
23 | comment?: string;
|
24 | sourceRange: SourceRange;
|
25 | astNode: HtmlAstNode;
|
26 | warnings: Warning[];
|
27 | 'slots': Slot[];
|
28 | localIds: LocalId[];
|
29 | template: Template | undefined;
|
30 | databindings: HtmlDatabindingExpression[];
|
31 | constructor(id: string | null, node: ASTNode, sourceRange: SourceRange, ast: HtmlAstNode, warnings: Warning[], template: Template | undefined, slots: Slot[], localIds: LocalId[], databindings: HtmlDatabindingExpression[]);
|
32 | resolve(): DomModule;
|
33 | }
|
34 | declare module '../model/queryable' {
|
35 | interface FeatureKindMap {
|
36 | 'dom-module': DomModule;
|
37 | }
|
38 | }
|
39 | export declare class DomModule implements Feature {
|
40 | kinds: Set<string>;
|
41 | identifiers: Set<string>;
|
42 | node: ASTNode;
|
43 | id: string | null;
|
44 | comment?: string;
|
45 | sourceRange: SourceRange;
|
46 | astNode: HtmlAstNode;
|
47 | warnings: Warning[];
|
48 | 'slots': Slot[];
|
49 | localIds: LocalId[];
|
50 | template: Template | undefined;
|
51 | databindings: HtmlDatabindingExpression[];
|
52 | constructor(node: ASTNode, id: string | null, comment: string | undefined, sourceRange: SourceRange, ast: HtmlAstNode, warnings: Warning[], slots: Slot[], localIds: LocalId[], template: Template | undefined, databindings: HtmlDatabindingExpression[]);
|
53 | }
|
54 | export declare class DomModuleScanner implements HtmlScanner {
|
55 | scan(document: ParsedHtmlDocument, visit: (visitor: HtmlVisitor) => Promise<void>): Promise<{
|
56 | features: ScannedDomModule[];
|
57 | }>;
|
58 | }
|