mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
934 B
Plaintext
32 lines
934 B
Plaintext
//// [tests/cases/compiler/declFileEmitDeclarationOnly.ts] ////
|
|
|
|
=== helloworld.ts ===
|
|
const Log = {
|
|
>Log : Symbol(Log, Decl(helloworld.ts, 0, 5))
|
|
|
|
info(msg: string) {}
|
|
>info : Symbol(info, Decl(helloworld.ts, 0, 13))
|
|
>msg : Symbol(msg, Decl(helloworld.ts, 1, 7))
|
|
}
|
|
|
|
class HelloWorld {
|
|
>HelloWorld : Symbol(HelloWorld, Decl(helloworld.ts, 2, 1))
|
|
|
|
constructor(private name: string) {
|
|
>name : Symbol(HelloWorld.name, Decl(helloworld.ts, 5, 14))
|
|
}
|
|
|
|
public hello() {
|
|
>hello : Symbol(HelloWorld.hello, Decl(helloworld.ts, 6, 3))
|
|
|
|
Log.info(`Hello ${this.name}`);
|
|
>Log.info : Symbol(info, Decl(helloworld.ts, 0, 13))
|
|
>Log : Symbol(Log, Decl(helloworld.ts, 0, 5))
|
|
>info : Symbol(info, Decl(helloworld.ts, 0, 13))
|
|
>this.name : Symbol(HelloWorld.name, Decl(helloworld.ts, 5, 14))
|
|
>this : Symbol(HelloWorld, Decl(helloworld.ts, 2, 1))
|
|
>name : Symbol(HelloWorld.name, Decl(helloworld.ts, 5, 14))
|
|
}
|
|
}
|
|
|