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 ScannedFunction {
|
17 | constructor(name, description, summary, privacy, astNode, jsdoc, sourceRange, params, returnData, templateTypes) {
|
18 | this.name = name;
|
19 | this.description = description;
|
20 | this.summary = summary;
|
21 | this.jsdoc = jsdoc;
|
22 | this.sourceRange = sourceRange;
|
23 | this.astNode = astNode;
|
24 | this.warnings = [];
|
25 | this.params = params;
|
26 | this.return = returnData;
|
27 | this.privacy = privacy;
|
28 | this.templateTypes = templateTypes;
|
29 | }
|
30 | resolve(_document) {
|
31 | return new Function(this);
|
32 | }
|
33 | }
|
34 | exports.ScannedFunction = ScannedFunction;
|
35 | class Function {
|
36 | constructor(scannedFunction) {
|
37 | this.name = scannedFunction.name;
|
38 | this.description = scannedFunction.description;
|
39 | this.summary = scannedFunction.summary;
|
40 | this.kinds = new Set(['function']);
|
41 | this.identifiers = new Set([this.name]);
|
42 | this.sourceRange = scannedFunction.sourceRange;
|
43 | this.astNode = scannedFunction.astNode;
|
44 | this.warnings = Array.from(scannedFunction.warnings);
|
45 | this.params = scannedFunction.params;
|
46 | this.return = scannedFunction.return;
|
47 | this.privacy = scannedFunction.privacy;
|
48 | this.templateTypes = scannedFunction.templateTypes;
|
49 | }
|
50 | toString() {
|
51 | return `<Function id=${this.name}>`;
|
52 | }
|
53 | }
|
54 | exports.Function = Function;
|
55 |
|
\ | No newline at end of file |