File: optionalBindingParameters2.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 (24 lines) | stat: -rw-r--r-- 1,133 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
23
24
=== tests/cases/conformance/es6/destructuring/optionalBindingParameters2.ts ===
function foo({ x, y, z }?: { x: string; y: number; z: boolean }) {
>foo : Symbol(foo, Decl(optionalBindingParameters2.ts, 0, 0))
>x : Symbol(x, Decl(optionalBindingParameters2.ts, 0, 14))
>y : Symbol(y, Decl(optionalBindingParameters2.ts, 0, 17))
>z : Symbol(z, Decl(optionalBindingParameters2.ts, 0, 20))
>x : Symbol(x, Decl(optionalBindingParameters2.ts, 0, 28))
>y : Symbol(y, Decl(optionalBindingParameters2.ts, 0, 39))
>z : Symbol(z, Decl(optionalBindingParameters2.ts, 0, 50))

}

foo({ x: "", y: 0, z: false });
>foo : Symbol(foo, Decl(optionalBindingParameters2.ts, 0, 0))
>x : Symbol(x, Decl(optionalBindingParameters2.ts, 4, 5))
>y : Symbol(y, Decl(optionalBindingParameters2.ts, 4, 12))
>z : Symbol(z, Decl(optionalBindingParameters2.ts, 4, 18))

foo({ x: false, y: 0, z: "" });
>foo : Symbol(foo, Decl(optionalBindingParameters2.ts, 0, 0))
>x : Symbol(x, Decl(optionalBindingParameters2.ts, 6, 5))
>y : Symbol(y, Decl(optionalBindingParameters2.ts, 6, 15))
>z : Symbol(z, Decl(optionalBindingParameters2.ts, 6, 21))