mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
//// [tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts] ////
|
|
|
|
=== foo.ts ===
|
|
export class Foo {}
|
|
>Foo : Symbol(Foo, Decl(foo.ts, 0, 0))
|
|
|
|
=== index1.ts ===
|
|
import {Foo} from './foo';
|
|
>Foo : Symbol(Foo, Decl(index1.ts, 0, 8))
|
|
|
|
export default function Example() {}
|
|
>Example : Symbol(Example, Decl(index1.ts, 0, 26))
|
|
|
|
Example.Foo = Foo
|
|
>Example.Foo : Symbol(Example.Foo, Decl(index1.ts, 1, 36))
|
|
>Example : Symbol(Example, Decl(index1.ts, 0, 26))
|
|
>Foo : Symbol(Example.Foo, Decl(index1.ts, 1, 36))
|
|
>Foo : Symbol(Foo, Decl(index1.ts, 0, 8))
|
|
|
|
=== index2.ts ===
|
|
import {Foo} from './foo';
|
|
>Foo : Symbol(Foo, Decl(index2.ts, 0, 8))
|
|
|
|
export {Foo};
|
|
>Foo : Symbol(Foo, Decl(index2.ts, 1, 8))
|
|
|
|
export default function Example() {}
|
|
>Example : Symbol(Example, Decl(index2.ts, 1, 13))
|
|
|
|
Example.Foo = Foo
|
|
>Example.Foo : Symbol(Example.Foo, Decl(index2.ts, 2, 36))
|
|
>Example : Symbol(Example, Decl(index2.ts, 1, 13))
|
|
>Foo : Symbol(Example.Foo, Decl(index2.ts, 2, 36))
|
|
>Foo : Symbol(Foo, Decl(index2.ts, 0, 8))
|
|
|
|
=== index3.ts ===
|
|
export class Bar {}
|
|
>Bar : Symbol(Bar, Decl(index3.ts, 0, 0))
|
|
|
|
export default function Example() {}
|
|
>Example : Symbol(Example, Decl(index3.ts, 0, 19))
|
|
|
|
Example.Bar = Bar
|
|
>Example.Bar : Symbol(Example.Bar, Decl(index3.ts, 1, 36))
|
|
>Example : Symbol(Example, Decl(index3.ts, 0, 19))
|
|
>Bar : Symbol(Example.Bar, Decl(index3.ts, 1, 36))
|
|
>Bar : Symbol(Bar, Decl(index3.ts, 0, 0))
|
|
|
|
=== index4.ts ===
|
|
function A() { }
|
|
>A : Symbol(A, Decl(index4.ts, 0, 0))
|
|
|
|
function B() { }
|
|
>B : Symbol(B, Decl(index4.ts, 0, 17))
|
|
|
|
export function C() {
|
|
>C : Symbol(C, Decl(index4.ts, 2, 16))
|
|
|
|
return null;
|
|
}
|
|
|
|
C.A = A;
|
|
>C.A : Symbol(C.A, Decl(index4.ts, 6, 1))
|
|
>C : Symbol(C, Decl(index4.ts, 2, 16))
|
|
>A : Symbol(C.A, Decl(index4.ts, 6, 1))
|
|
>A : Symbol(A, Decl(index4.ts, 0, 0))
|
|
|
|
C.B = B;
|
|
>C.B : Symbol(C.B, Decl(index4.ts, 8, 8))
|
|
>C : Symbol(C, Decl(index4.ts, 2, 16))
|
|
>B : Symbol(C.B, Decl(index4.ts, 8, 8))
|
|
>B : Symbol(B, Decl(index4.ts, 0, 17))
|
|
|