File: declarationEmitPrivateNameCausesError.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 (22 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (5)
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.ts ===
const IGNORE_EXTRA_VARIABLES = Symbol(); //Notice how this is unexported
>IGNORE_EXTRA_VARIABLES : Symbol(IGNORE_EXTRA_VARIABLES, Decl(file.ts, 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 exported
export function ignoreExtraVariables<CtorT extends {new(...args:any[]):{}}> (ctor : CtorT) {
>ignoreExtraVariables : Symbol(ignoreExtraVariables, Decl(file.ts, 0, 40))
>CtorT : Symbol(CtorT, Decl(file.ts, 3, 37))
>args : Symbol(args, Decl(file.ts, 3, 56))
>ctor : Symbol(ctor, Decl(file.ts, 3, 77))
>CtorT : Symbol(CtorT, Decl(file.ts, 3, 37))

    return class extends ctor {
>ctor : Symbol(ctor, Decl(file.ts, 3, 77))

        [IGNORE_EXTRA_VARIABLES] = true; //An unexported constant is used
>[IGNORE_EXTRA_VARIABLES] : Symbol((Anonymous class)[IGNORE_EXTRA_VARIABLES], Decl(file.ts, 4, 31))
>IGNORE_EXTRA_VARIABLES : Symbol(IGNORE_EXTRA_VARIABLES, Decl(file.ts, 0, 5))

    };
}