|
| 1 | +=== tests/cases/compiler/foo.ts === |
| 2 | +export class Foo {} |
| 3 | +>Foo : Symbol(Foo, Decl(foo.ts, 0, 0)) |
| 4 | + |
| 5 | +=== tests/cases/compiler/index1.ts === |
| 6 | +import {Foo} from './foo'; |
| 7 | +>Foo : Symbol(Foo, Decl(index1.ts, 0, 8)) |
| 8 | + |
| 9 | +export default function Example() {} |
| 10 | +>Example : Symbol(Example, Decl(index1.ts, 0, 26), Decl(index1.ts, 1, 36)) |
| 11 | + |
| 12 | +Example.Foo = Foo |
| 13 | +>Example.Foo : Symbol(Example.Foo, Decl(index1.ts, 1, 36)) |
| 14 | +>Example : Symbol(Example, Decl(index1.ts, 0, 26), Decl(index1.ts, 1, 36)) |
| 15 | +>Foo : Symbol(Example.Foo, Decl(index1.ts, 1, 36)) |
| 16 | +>Foo : Symbol(Foo, Decl(index1.ts, 0, 8)) |
| 17 | + |
| 18 | +=== tests/cases/compiler/index2.ts === |
| 19 | +import {Foo} from './foo'; |
| 20 | +>Foo : Symbol(Foo, Decl(index2.ts, 0, 8)) |
| 21 | + |
| 22 | +export {Foo}; |
| 23 | +>Foo : Symbol(Foo, Decl(index2.ts, 1, 8)) |
| 24 | + |
| 25 | +export default function Example() {} |
| 26 | +>Example : Symbol(Example, Decl(index2.ts, 1, 13), Decl(index2.ts, 2, 36)) |
| 27 | + |
| 28 | +Example.Foo = Foo |
| 29 | +>Example.Foo : Symbol(Example.Foo, Decl(index2.ts, 2, 36)) |
| 30 | +>Example : Symbol(Example, Decl(index2.ts, 1, 13), Decl(index2.ts, 2, 36)) |
| 31 | +>Foo : Symbol(Example.Foo, Decl(index2.ts, 2, 36)) |
| 32 | +>Foo : Symbol(Foo, Decl(index2.ts, 0, 8)) |
| 33 | + |
| 34 | +=== tests/cases/compiler/index3.ts === |
| 35 | +export class Bar {} |
| 36 | +>Bar : Symbol(Bar, Decl(index3.ts, 0, 0)) |
| 37 | + |
| 38 | +export default function Example() {} |
| 39 | +>Example : Symbol(Example, Decl(index3.ts, 0, 19), Decl(index3.ts, 1, 36)) |
| 40 | + |
| 41 | +Example.Bar = Bar |
| 42 | +>Example.Bar : Symbol(Example.Bar, Decl(index3.ts, 1, 36)) |
| 43 | +>Example : Symbol(Example, Decl(index3.ts, 0, 19), Decl(index3.ts, 1, 36)) |
| 44 | +>Bar : Symbol(Example.Bar, Decl(index3.ts, 1, 36)) |
| 45 | +>Bar : Symbol(Bar, Decl(index3.ts, 0, 0)) |
| 46 | + |
| 47 | +=== tests/cases/compiler/index4.ts === |
| 48 | +function A() { } |
| 49 | +>A : Symbol(A, Decl(index4.ts, 0, 0)) |
| 50 | + |
| 51 | +function B() { } |
| 52 | +>B : Symbol(B, Decl(index4.ts, 0, 17)) |
| 53 | + |
| 54 | +export function C() { |
| 55 | +>C : Symbol(C, Decl(index4.ts, 2, 16), Decl(index4.ts, 6, 1)) |
| 56 | + |
| 57 | + return null; |
| 58 | +} |
| 59 | + |
| 60 | +C.A = A; |
| 61 | +>C.A : Symbol(C.A, Decl(index4.ts, 6, 1)) |
| 62 | +>C : Symbol(C, Decl(index4.ts, 2, 16), Decl(index4.ts, 6, 1)) |
| 63 | +>A : Symbol(C.A, Decl(index4.ts, 6, 1)) |
| 64 | +>A : Symbol(A, Decl(index4.ts, 0, 0)) |
| 65 | + |
| 66 | +C.B = B; |
| 67 | +>C.B : Symbol(C.B, Decl(index4.ts, 8, 8)) |
| 68 | +>C : Symbol(C, Decl(index4.ts, 2, 16), Decl(index4.ts, 6, 1)) |
| 69 | +>B : Symbol(C.B, Decl(index4.ts, 8, 8)) |
| 70 | +>B : Symbol(B, Decl(index4.ts, 0, 17)) |
| 71 | + |
0 commit comments