File: declarationEmitDestructuring3.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 (13 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
=== tests/cases/compiler/declarationEmitDestructuring3.ts ===
function bar([x, z, ...w]) { }
>bar : Symbol(bar, Decl(declarationEmitDestructuring3.ts, 0, 0))
>x : Symbol(x, Decl(declarationEmitDestructuring3.ts, 0, 14))
>z : Symbol(z, Decl(declarationEmitDestructuring3.ts, 0, 16))
>w : Symbol(w, Decl(declarationEmitDestructuring3.ts, 0, 19))

function foo([x, ...y] = [1, "string", true]) { }
>foo : Symbol(foo, Decl(declarationEmitDestructuring3.ts, 0, 30))
>x : Symbol(x, Decl(declarationEmitDestructuring3.ts, 1, 14))
>y : Symbol(y, Decl(declarationEmitDestructuring3.ts, 1, 16))