File: jsExportAssignmentNonMutableLocation.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (22 lines) | stat: -rw-r--r-- 984 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
=== tests/cases/compiler/file.js ===
const customSymbol = Symbol("custom");
>customSymbol : Symbol(customSymbol, Decl(file.js, 0, 5))
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))

// This is a common pattern in Node’s built-in modules:
module.exports = {
>module.exports : Symbol(module.exports, Decl(file.js, 0, 0))
>module : Symbol(module, Decl(file.js, 0, 38))
>exports : Symbol(module.exports, Decl(file.js, 0, 0))

    customSymbol,
>customSymbol : Symbol(customSymbol, Decl(file.js, 3, 18))

};

exports.customSymbol2 = Symbol("custom");
>exports.customSymbol2 : Symbol(customSymbol2, Decl(file.js, 5, 2))
>exports : Symbol(customSymbol2, Decl(file.js, 5, 2))
>customSymbol2 : Symbol(customSymbol2, Decl(file.js, 5, 2))
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))