File: importTypeLocal.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (93 lines) | stat: -rw-r--r-- 2,443 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
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
83
84
85
86
87
88
89
90
91
92
93
=== tests/cases/conformance/types/import/foo.ts ===
interface Point {
>Point : Symbol(Point, Decl(foo.ts, 0, 0))

    x: number;
>x : Symbol(Point.x, Decl(foo.ts, 0, 17))

    y: number;
>y : Symbol(Point.y, Decl(foo.ts, 1, 14))
}
export = Point;
>Point : Symbol(Point, Decl(foo.ts, 0, 0))

=== tests/cases/conformance/types/import/foo2.ts ===
namespace Bar {
>Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 12, 1))

    export interface I {
>I : Symbol(I, Decl(foo2.ts, 0, 15))

        a: string;
>a : Symbol(I.a, Decl(foo2.ts, 1, 24))

        b: number;
>b : Symbol(I.b, Decl(foo2.ts, 2, 18))
    }
}

export namespace Baz {
>Baz : Symbol(Baz, Decl(foo2.ts, 5, 1))

    export interface J {
>J : Symbol(J, Decl(foo2.ts, 7, 22))

        a: number;
>a : Symbol(J.a, Decl(foo2.ts, 8, 24))

        b: string;
>b : Symbol(J.b, Decl(foo2.ts, 9, 18))
    }
}

class Bar {
>Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 12, 1))

    item: Bar.I;
>item : Symbol(Bar.item, Decl(foo2.ts, 14, 11))
>Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 12, 1))
>I : Symbol(Bar.I, Decl(foo2.ts, 0, 15))

    constructor(input: Baz.J) {}
>input : Symbol(input, Decl(foo2.ts, 16, 16))
>Baz : Symbol(Baz, Decl(foo2.ts, 5, 1))
>J : Symbol(Baz.J, Decl(foo2.ts, 7, 22))
}
export { Bar }
>Bar : Symbol(Bar, Decl(foo2.ts, 18, 8))

=== tests/cases/conformance/types/import/usage.ts ===
export const x: import("./foo") = { x: 0, y: 0 };
>x : Symbol(x, Decl(usage.ts, 0, 12))
>x : Symbol(x, Decl(usage.ts, 0, 35))
>y : Symbol(y, Decl(usage.ts, 0, 41))

export let y: import("./foo2").Bar.I = { a: "", b: 0 };
>y : Symbol(y, Decl(usage.ts, 1, 10))
>Bar : Symbol(Bar, Decl(foo2.ts, 18, 8))
>I : Symbol(Bar.I, Decl(foo2.ts, 0, 15))
>a : Symbol(a, Decl(usage.ts, 1, 40))
>b : Symbol(b, Decl(usage.ts, 1, 47))

export class Bar2 {
>Bar2 : Symbol(Bar2, Decl(usage.ts, 1, 55))

    item: {a: string, b: number, c: object};
>item : Symbol(Bar2.item, Decl(usage.ts, 3, 19))
>a : Symbol(a, Decl(usage.ts, 4, 11))
>b : Symbol(b, Decl(usage.ts, 4, 21))
>c : Symbol(c, Decl(usage.ts, 4, 32))

    constructor(input?: any) {}
>input : Symbol(input, Decl(usage.ts, 5, 16))
}

export let shim: typeof import("./foo2") = {
>shim : Symbol(shim, Decl(usage.ts, 8, 10))

    Bar: Bar2
>Bar : Symbol(Bar, Decl(usage.ts, 8, 44))
>Bar2 : Symbol(Bar2, Decl(usage.ts, 1, 55))

};