File: typedefCrossModule.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (70 lines) | stat: -rw-r--r-- 2,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
=== tests/cases/conformance/jsdoc/commonjs.d.ts ===
declare var module: { exports: any};
>module : Symbol(module, Decl(commonjs.d.ts, 0, 11))
>exports : Symbol(exports, Decl(commonjs.d.ts, 0, 21))

=== tests/cases/conformance/jsdoc/mod1.js ===
/// <reference path="./commonjs.d.ts"/>
/** @typedef {{ type: "a", x: 1 }} A */
/** @typedef {{ type: "b", y: 1 }} B */
/** @typedef {A | B} Both */
module.exports = C
>module.exports : Symbol("tests/cases/conformance/jsdoc/mod1", Decl(mod1.js, 0, 0))
>module : Symbol(export=, Decl(mod1.js, 0, 0))
>exports : Symbol(export=, Decl(mod1.js, 0, 0))
>C : Symbol(C, Decl(mod1.js, 4, 18))

function C() {
>C : Symbol(C, Decl(mod1.js, 4, 18))

    this.p = 1
>p : Symbol(C.p, Decl(mod1.js, 5, 14))
}

=== tests/cases/conformance/jsdoc/mod2.js ===
/// <reference path="./commonjs.d.ts"/>
/** @typedef {{ type: "a", x: 1 }} A */
/** @typedef {{ type: "b", y: 1 }} B */
/** @typedef {A | B} Both */

export function C() {
>C : Symbol(C, Decl(mod2.js, 0, 0))

    this.p = 1
>p : Symbol(C.p, Decl(mod2.js, 5, 21))
}

=== tests/cases/conformance/jsdoc/mod3.js ===
/// <reference path="./commonjs.d.ts"/>
/** @typedef {{ type: "a", x: 1 }} A */
/** @typedef {{ type: "b", y: 1 }} B */
/** @typedef {A | B} Both */

exports.C = function() {
>exports.C : Symbol(C, Decl(mod3.js, 0, 0))
>exports : Symbol(C, Decl(mod3.js, 0, 0))
>C : Symbol(C, Decl(mod3.js, 0, 0))

    this.p = 1
>p : Symbol(C.p, Decl(mod3.js, 5, 24))
}

=== tests/cases/conformance/jsdoc/use.js ===
/** @type {import('./mod1').Both} */
var both1 = { type: 'a', x: 1 };
>both1 : Symbol(both1, Decl(use.js, 1, 3))
>type : Symbol(type, Decl(use.js, 1, 13))
>x : Symbol(x, Decl(use.js, 1, 24))

/** @type {import('./mod2').Both} */
var both2 = both1;
>both2 : Symbol(both2, Decl(use.js, 3, 3))
>both1 : Symbol(both1, Decl(use.js, 1, 3))

/** @type {import('./mod3').Both} */
var both3 = both2;
>both3 : Symbol(both3, Decl(use.js, 5, 3))
>both2 : Symbol(both2, Decl(use.js, 3, 3))