mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
//// [tests/cases/compiler/declarationMapsMultifile.ts] ////
|
|
|
|
=== 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))
|
|
}
|
|
}
|
|
=== 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))
|
|
|