File: jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (37 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | download | duplicates (3)
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
=== tests/cases/conformance/jsdoc/declarations/index.js ===
module.exports = class {
>module.exports : Symbol(module.exports, Decl(index.js, 0, 0))
>module : Symbol(export=, Decl(index.js, 0, 0))
>exports : Symbol(export=, Decl(index.js, 0, 0))

    /**
     * @param {number} p
     */
    constructor(p) {
>p : Symbol(p, Decl(index.js, 4, 16))

        this.t = 12 + p;
>this.t : Symbol(exports.t, Decl(index.js, 4, 20))
>this : Symbol(exports, Decl(index.js, 0, 16))
>t : Symbol(exports.t, Decl(index.js, 4, 20))
>p : Symbol(p, Decl(index.js, 4, 16))
    }
}
module.exports.Sub = class {
>module.exports.Sub : Symbol(Sub, Decl(index.js, 7, 1))
>module.exports : Symbol(Sub, Decl(index.js, 7, 1))
>module : Symbol(module, Decl(index.js, 0, 0), Decl(index.js, 10, 27))
>exports : Symbol(module.exports, Decl(index.js, 0, 0))
>Sub : Symbol(Sub, Decl(index.js, 7, 1))

    constructor() {
        this.instance = new module.exports(10);
>this.instance : Symbol(Sub.instance, Decl(index.js, 9, 19))
>this : Symbol(Sub, Decl(index.js, 8, 20))
>instance : Symbol(Sub.instance, Decl(index.js, 9, 19))
>module.exports : Symbol(module.exports, Decl(index.js, 0, 0))
>module : Symbol(module, Decl(index.js, 0, 0), Decl(index.js, 10, 27))
>exports : Symbol(module.exports, Decl(index.js, 0, 0))
    }
}