1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | Object.defineProperty(exports, "__esModule", { value: true });
|
16 | class ElementReference {
|
17 | constructor(scannedRef, _document) {
|
18 | this.kinds = new Set(['element-reference']);
|
19 | this.tagName = scannedRef.tagName;
|
20 | this.attributes = scannedRef.attributes;
|
21 | this.sourceRange = scannedRef.sourceRange;
|
22 | this.astNode = scannedRef.astNode;
|
23 | this.warnings = scannedRef.warnings;
|
24 | }
|
25 | get identifiers() {
|
26 | return new Set([this.tagName]);
|
27 | }
|
28 | }
|
29 | exports.ElementReference = ElementReference;
|
30 | class ScannedElementReference {
|
31 | constructor(tagName, sourceRange, ast) {
|
32 | this.attributes = new Map();
|
33 | this.warnings = [];
|
34 | this.tagName = tagName;
|
35 | this.sourceRange = sourceRange;
|
36 | this.astNode = ast;
|
37 | }
|
38 | resolve(document) {
|
39 | return new ElementReference(this, document);
|
40 | }
|
41 | }
|
42 | exports.ScannedElementReference = ScannedElementReference;
|
43 |
|
\ | No newline at end of file |