File: declarationMapsMultifile.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 (47 lines) | stat: -rw-r--r-- 1,344 bytes parent folder | download | duplicates (10)
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
=== tests/cases/compiler/a.ts ===
export class Foo {
>Foo : Symbol(Foo, Decl(a.ts, 0, 0))

    doThing(x: {a: number}) {
>doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 18))
>x : Symbol(x, Decl(a.ts, 1, 12))
>a : Symbol(a, Decl(a.ts, 1, 16))

        return {b: x.a};
>b : Symbol(b, Decl(a.ts, 2, 16))
>x.a : Symbol(a, Decl(a.ts, 1, 16))
>x : Symbol(x, Decl(a.ts, 1, 12))
>a : Symbol(a, Decl(a.ts, 1, 16))
    }
    static make() {
>make : Symbol(Foo.make, Decl(a.ts, 3, 5))

        return new Foo();
>Foo : Symbol(Foo, Decl(a.ts, 0, 0))
    }
}
=== tests/cases/compiler/index.ts ===
import {Foo} from "./a";
>Foo : Symbol(Foo, Decl(index.ts, 0, 8))

const c = new Foo();
>c : Symbol(c, Decl(index.ts, 2, 5))
>Foo : Symbol(Foo, Decl(index.ts, 0, 8))

c.doThing({a: 42});
>c.doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 18))
>c : Symbol(c, Decl(index.ts, 2, 5))
>doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 18))
>a : Symbol(a, Decl(index.ts, 3, 11))

export let x = c.doThing({a: 12});
>x : Symbol(x, Decl(index.ts, 5, 10))
>c.doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 18))
>c : Symbol(c, Decl(index.ts, 2, 5))
>doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 18))
>a : Symbol(a, Decl(index.ts, 5, 26))

export { c, Foo };
>c : Symbol(c, Decl(index.ts, 6, 8))
>Foo : Symbol(Foo, Decl(index.ts, 6, 11))