File: declFileEmitDeclarationOnly.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (29 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (5)
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/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))
  }
}