101 lines
2.7 KiB
Text
101 lines
2.7 KiB
Text
=== tests/cases/conformance/es6/modules/t1.ts ===
|
|
|
|
var v = 1;
|
|
>v : Symbol(v, Decl(t1.ts, 1, 3))
|
|
|
|
function f() { }
|
|
>f : Symbol(f, Decl(t1.ts, 1, 10))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(t1.ts, 2, 16))
|
|
}
|
|
interface I {
|
|
>I : Symbol(I, Decl(t1.ts, 4, 1))
|
|
}
|
|
enum E {
|
|
>E : Symbol(E, Decl(t1.ts, 6, 1))
|
|
|
|
A, B, C
|
|
>A : Symbol(E.A, Decl(t1.ts, 7, 8))
|
|
>B : Symbol(E.B, Decl(t1.ts, 8, 6))
|
|
>C : Symbol(E.C, Decl(t1.ts, 8, 9))
|
|
}
|
|
const enum D {
|
|
>D : Symbol(D, Decl(t1.ts, 9, 1))
|
|
|
|
A, B, C
|
|
>A : Symbol(D.A, Decl(t1.ts, 10, 14))
|
|
>B : Symbol(D.B, Decl(t1.ts, 11, 6))
|
|
>C : Symbol(D.C, Decl(t1.ts, 11, 9))
|
|
}
|
|
module M {
|
|
>M : Symbol(M, Decl(t1.ts, 12, 1))
|
|
|
|
export var x;
|
|
>x : Symbol(x, Decl(t1.ts, 14, 14))
|
|
}
|
|
module N {
|
|
>N : Symbol(N, Decl(t1.ts, 15, 1))
|
|
|
|
export interface I {
|
|
>I : Symbol(I, Decl(t1.ts, 16, 10))
|
|
}
|
|
}
|
|
type T = number;
|
|
>T : Symbol(T, Decl(t1.ts, 19, 1))
|
|
|
|
import a = M.x;
|
|
>a : Symbol(a, Decl(t1.ts, 20, 16))
|
|
>M : Symbol(M, Decl(t1.ts, 12, 1))
|
|
>x : Symbol(a, Decl(t1.ts, 14, 14))
|
|
|
|
export { v, f, C, I, E, D, M, N, T, a };
|
|
>v : Symbol(v, Decl(t1.ts, 23, 8))
|
|
>f : Symbol(f, Decl(t1.ts, 23, 11))
|
|
>C : Symbol(C, Decl(t1.ts, 23, 14))
|
|
>I : Symbol(I, Decl(t1.ts, 23, 17))
|
|
>E : Symbol(E, Decl(t1.ts, 23, 20))
|
|
>D : Symbol(D, Decl(t1.ts, 23, 23))
|
|
>M : Symbol(M, Decl(t1.ts, 23, 26))
|
|
>N : Symbol(N, Decl(t1.ts, 23, 29))
|
|
>T : Symbol(T, Decl(t1.ts, 23, 32))
|
|
>a : Symbol(a, Decl(t1.ts, 23, 35))
|
|
|
|
=== tests/cases/conformance/es6/modules/t2.ts ===
|
|
export { v, f, C, I, E, D, M, N, T, a } from "./t1";
|
|
>v : Symbol(v, Decl(t2.ts, 0, 8))
|
|
>f : Symbol(f, Decl(t2.ts, 0, 11))
|
|
>C : Symbol(C, Decl(t2.ts, 0, 14))
|
|
>I : Symbol(I, Decl(t2.ts, 0, 17))
|
|
>E : Symbol(E, Decl(t2.ts, 0, 20))
|
|
>D : Symbol(D, Decl(t2.ts, 0, 23))
|
|
>M : Symbol(M, Decl(t2.ts, 0, 26))
|
|
>N : Symbol(N, Decl(t2.ts, 0, 29))
|
|
>T : Symbol(T, Decl(t2.ts, 0, 32))
|
|
>a : Symbol(a, Decl(t2.ts, 0, 35))
|
|
|
|
=== tests/cases/conformance/es6/modules/t3.ts ===
|
|
import { v, f, C, I, E, D, M, N, T, a } from "./t1";
|
|
>v : Symbol(v, Decl(t3.ts, 0, 8))
|
|
>f : Symbol(f, Decl(t3.ts, 0, 11))
|
|
>C : Symbol(C, Decl(t3.ts, 0, 14))
|
|
>I : Symbol(I, Decl(t3.ts, 0, 17))
|
|
>E : Symbol(E, Decl(t3.ts, 0, 20))
|
|
>D : Symbol(D, Decl(t3.ts, 0, 23))
|
|
>M : Symbol(M, Decl(t3.ts, 0, 26))
|
|
>N : Symbol(N, Decl(t3.ts, 0, 29))
|
|
>T : Symbol(T, Decl(t3.ts, 0, 32))
|
|
>a : Symbol(a, Decl(t3.ts, 0, 35))
|
|
|
|
export { v, f, C, I, E, D, M, N, T, a };
|
|
>v : Symbol(v, Decl(t3.ts, 1, 8))
|
|
>f : Symbol(f, Decl(t3.ts, 1, 11))
|
|
>C : Symbol(C, Decl(t3.ts, 1, 14))
|
|
>I : Symbol(I, Decl(t3.ts, 1, 17))
|
|
>E : Symbol(E, Decl(t3.ts, 1, 20))
|
|
>D : Symbol(D, Decl(t3.ts, 1, 23))
|
|
>M : Symbol(M, Decl(t3.ts, 1, 26))
|
|
>N : Symbol(N, Decl(t3.ts, 1, 29))
|
|
>T : Symbol(T, Decl(t3.ts, 1, 32))
|
|
>a : Symbol(a, Decl(t3.ts, 1, 35))
|
|
|