File: declFileTypeofFunction.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 (82 lines) | stat: -rw-r--r-- 3,462 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
=== tests/cases/compiler/declFileTypeofFunction.ts ===

function f(n: typeof f): string;
>f : Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32))
>n : Symbol(n, Decl(declFileTypeofFunction.ts, 1, 11))
>f : Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32))

function f(n: typeof g): string;
>f : Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32))
>n : Symbol(n, Decl(declFileTypeofFunction.ts, 2, 11))
>g : Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32))

function f() { return undefined; }
>f : Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32))
>undefined : Symbol(undefined)

function g(n: typeof g): number;
>g : Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32))
>n : Symbol(n, Decl(declFileTypeofFunction.ts, 4, 11))
>g : Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32))

function g(n: typeof f): number;
>g : Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32))
>n : Symbol(n, Decl(declFileTypeofFunction.ts, 5, 11))
>f : Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32))

function g() { return undefined; }
>g : Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32))
>undefined : Symbol(undefined)

var b: () => typeof b;
>b : Symbol(b, Decl(declFileTypeofFunction.ts, 8, 3))
>b : Symbol(b, Decl(declFileTypeofFunction.ts, 8, 3))

function b1() {
>b1 : Symbol(b1, Decl(declFileTypeofFunction.ts, 8, 22))

    return b1;
>b1 : Symbol(b1, Decl(declFileTypeofFunction.ts, 8, 22))
}

function foo(): typeof foo {
>foo : Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1))
>foo : Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1))

    return null;
}
var foo1: typeof foo;
>foo1 : Symbol(foo1, Decl(declFileTypeofFunction.ts, 17, 3))
>foo : Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1))

var foo2 = foo;
>foo2 : Symbol(foo2, Decl(declFileTypeofFunction.ts, 18, 3))
>foo : Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1))

var foo3 = function () {
>foo3 : Symbol(foo3, Decl(declFileTypeofFunction.ts, 20, 3))

    return foo3;
>foo3 : Symbol(foo3, Decl(declFileTypeofFunction.ts, 20, 3))
}
var x = () => {
>x : Symbol(x, Decl(declFileTypeofFunction.ts, 23, 3))

    return x;
>x : Symbol(x, Decl(declFileTypeofFunction.ts, 23, 3))
}

function foo5(x: number) {
>foo5 : Symbol(foo5, Decl(declFileTypeofFunction.ts, 25, 1))
>x : Symbol(x, Decl(declFileTypeofFunction.ts, 27, 14))

    function bar(x: number) {
>bar : Symbol(bar, Decl(declFileTypeofFunction.ts, 27, 26))
>x : Symbol(x, Decl(declFileTypeofFunction.ts, 28, 17))

        return x;
>x : Symbol(x, Decl(declFileTypeofFunction.ts, 28, 17))
    }
    return bar;
>bar : Symbol(bar, Decl(declFileTypeofFunction.ts, 27, 26))
}