File: declarationEmitDestructuring4.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 (21 lines) | stat: -rw-r--r-- 788 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
=== tests/cases/compiler/declarationEmitDestructuring4.ts ===
// For an array binding pattern with empty elements,
// we will not make any modification and will emit
// the similar binding pattern users' have written
function baz([]) { }
>baz : Symbol(baz, Decl(declarationEmitDestructuring4.ts, 0, 0))

function baz1([] = [1,2,3]) { }
>baz1 : Symbol(baz1, Decl(declarationEmitDestructuring4.ts, 3, 20))

function baz2([[]] = [[1,2,3]]) { }
>baz2 : Symbol(baz2, Decl(declarationEmitDestructuring4.ts, 4, 31))

function baz3({}) { }
>baz3 : Symbol(baz3, Decl(declarationEmitDestructuring4.ts, 5, 35))

function baz4({} = { x: 10 }) { }
>baz4 : Symbol(baz4, Decl(declarationEmitDestructuring4.ts, 7, 21))
>x : Symbol(x, Decl(declarationEmitDestructuring4.ts, 8, 20))