File: declFileRestParametersOfFunctionAndFunctionType.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 (30 lines) | stat: -rw-r--r-- 1,594 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
25
26
27
28
29
30
=== tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts ===
function f1(...args) { }
>f1 : Symbol(f1, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 0, 0))
>args : Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 0, 12))

function f2(x: (...args) => void) { }
>f2 : Symbol(f2, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 0, 24))
>x : Symbol(x, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 12))
>args : Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 16))

function f3(x: { (...args): void }) { }
>f3 : Symbol(f3, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 37))
>x : Symbol(x, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 12))
>args : Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 18))

function f4<T extends (...args) => void>() { }
>f4 : Symbol(f4, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 39))
>T : Symbol(T, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 12))
>args : Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 23))

function f5<T extends { (...args): void }>() { }
>f5 : Symbol(f5, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 46))
>T : Symbol(T, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 12))
>args : Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 25))

var f6 = () => { return [<any>10]; }
>f6 : Symbol(f6, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 5, 3))