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
|
=== tests/cases/compiler/f1.ts ===
export class A {};
>A : Symbol(A, Decl(f1.ts, 0, 0))
=== tests/cases/compiler/f2.ts ===
// change the shape of Array<T>
import {A} from "./f1";
>A : Symbol(A, Decl(f2.ts, 2, 8))
declare global {
>global : Symbol(global, Decl(f2.ts, 2, 23))
interface Array<T> {
>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(f2.ts, 4, 16))
>T : Symbol(T, Decl(lib.d.ts, --, --), Decl(f2.ts, 5, 20))
getCountAsString(): string;
>getCountAsString : Symbol(Array.getCountAsString, Decl(f2.ts, 5, 24))
}
}
=== tests/cases/compiler/f3.ts ===
import "./f2";
let x = [1];
>x : Symbol(x, Decl(f3.ts, 2, 3))
let y = x.getCountAsString().toLowerCase();
>y : Symbol(y, Decl(f3.ts, 3, 3))
>x.getCountAsString().toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, --, --))
>x.getCountAsString : Symbol(Array.getCountAsString, Decl(f2.ts, 5, 24))
>x : Symbol(x, Decl(f3.ts, 2, 3))
>getCountAsString : Symbol(Array.getCountAsString, Decl(f2.ts, 5, 24))
>toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, --, --))
|