TypeScript/tests/baselines/reference/declFileEmitDeclarationsOnly.symbols
Manoj Patel afc588eb9e --emitDeclarationsOnly flag to enable declarations only output (#20735)
* Add emitOnlyDeclarations flag

* Fix name

* verifyOptions checking logic

* Passing tests

* doJsEmitBaseline

* Tests !!!
2018-01-25 15:35:18 -08:00

30 lines
888 B
Plaintext

=== tests/cases/compiler/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))
}
}