File: parserNotHexLiteral1.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (24 lines) | stat: -rw-r--r-- 1,153 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
=== tests/cases/conformance/parser/ecmascript5/RegressionTests/parserNotHexLiteral1.ts ===
var x = {e0: 'cat', x0: 'dog'};
>x : Symbol(x, Decl(parserNotHexLiteral1.ts, 0, 3))
>e0 : Symbol(e0, Decl(parserNotHexLiteral1.ts, 0, 9))
>x0 : Symbol(x0, Decl(parserNotHexLiteral1.ts, 0, 19))

console.info (x.x0);
>console.info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>x.x0 : Symbol(x0, Decl(parserNotHexLiteral1.ts, 0, 19))
>x : Symbol(x, Decl(parserNotHexLiteral1.ts, 0, 3))
>x0 : Symbol(x0, Decl(parserNotHexLiteral1.ts, 0, 19))

// tsc dies on this next line with "bug.ts (5,16): Expected ')'"
//   tsc seems to be parsing the e0 as a hex constant.
console.info (x.e0);
>console.info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>x.e0 : Symbol(e0, Decl(parserNotHexLiteral1.ts, 0, 9))
>x : Symbol(x, Decl(parserNotHexLiteral1.ts, 0, 3))
>e0 : Symbol(e0, Decl(parserNotHexLiteral1.ts, 0, 9))