1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | Object.defineProperty(exports, "__esModule", { value: true });
|
16 |
|
17 |
|
18 |
|
19 | class ScannedNamespace {
|
20 | constructor(name, description, summary, astNode, properties, jsdoc, sourceRange) {
|
21 | this.name = name;
|
22 | this.description = description;
|
23 | this.summary = summary;
|
24 | this.jsdoc = jsdoc;
|
25 | this.sourceRange = sourceRange;
|
26 | this.astNode = astNode;
|
27 | this.warnings = [];
|
28 | this.properties = properties;
|
29 | }
|
30 | resolve(_document) {
|
31 | return new Namespace(this);
|
32 | }
|
33 | }
|
34 | exports.ScannedNamespace = ScannedNamespace;
|
35 | class Namespace {
|
36 | constructor(scannedNamespace) {
|
37 | this.properties = new Map();
|
38 | this.name = scannedNamespace.name;
|
39 | this.description = scannedNamespace.description;
|
40 | this.summary = scannedNamespace.summary;
|
41 | this.kinds = new Set(['namespace']);
|
42 | this.identifiers = new Set([this.name]);
|
43 | this.sourceRange = scannedNamespace.sourceRange;
|
44 | this.astNode = scannedNamespace.astNode;
|
45 | this.warnings = Array.from(scannedNamespace.warnings);
|
46 | for (const [key, prop] of scannedNamespace.properties) {
|
47 | this.properties.set(key, prop);
|
48 | }
|
49 | }
|
50 | toString() {
|
51 | return `<Namespace id=${this.name}>`;
|
52 | }
|
53 | }
|
54 | exports.Namespace = Namespace;
|
55 |
|
\ | No newline at end of file |