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
|
=== tests/cases/compiler/file1.ts ===
export class Calculator {
>Calculator : Symbol(Calculator, Decl(file1.ts, 0, 0))
handleChar() {}
>handleChar : Symbol(Calculator.handleChar, Decl(file1.ts, 0, 25))
}
export function test() {
>test : Symbol(test, Decl(file1.ts, 2, 1))
}
=== tests/cases/compiler/file2.ts ===
import {Calculator} from "./file1"
>Calculator : Symbol(Calculator, Decl(file2.ts, 0, 8))
import {test} from "./file1"
>test : Symbol(test, Decl(file2.ts, 1, 8))
var x = new Calculator();
>x : Symbol(x, Decl(file2.ts, 3, 3))
>Calculator : Symbol(Calculator, Decl(file2.ts, 0, 8))
x.handleChar();
>x.handleChar : Symbol(Calculator.handleChar, Decl(file1.ts, 0, 25))
>x : Symbol(x, Decl(file2.ts, 3, 3))
>handleChar : Symbol(Calculator.handleChar, Decl(file1.ts, 0, 25))
|