File: declFileRestParametersOfFunctionAndFunctionType.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 1,596 bytes parent folder | download | duplicates (2)
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
31
=== tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts ===

function f1(...args) { }
>f1 : Symbol(f1, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 0, 0))
>args : Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 12))

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

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

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

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

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