File: constDeclarations.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (2)
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
=== tests/cases/compiler/constDeclarations.ts ===

// No error
const c1 = false;
>c1 : Symbol(c1, Decl(constDeclarations.ts, 2, 5))

const c2: number = 23;
>c2 : Symbol(c2, Decl(constDeclarations.ts, 3, 5))

const c3 = 0, c4 :string = "", c5 = null;
>c3 : Symbol(c3, Decl(constDeclarations.ts, 4, 5))
>c4 : Symbol(c4, Decl(constDeclarations.ts, 4, 13))
>c5 : Symbol(c5, Decl(constDeclarations.ts, 4, 30))


for(const c4 = 0; c4 < 9; ) { break; }
>c4 : Symbol(c4, Decl(constDeclarations.ts, 7, 9))
>c4 : Symbol(c4, Decl(constDeclarations.ts, 7, 9))


for(const c5 = 0, c6 = 0; c5 < c6; ) { break; }
>c5 : Symbol(c5, Decl(constDeclarations.ts, 10, 9))
>c6 : Symbol(c6, Decl(constDeclarations.ts, 10, 17))
>c5 : Symbol(c5, Decl(constDeclarations.ts, 10, 9))
>c6 : Symbol(c6, Decl(constDeclarations.ts, 10, 17))