tests/fixtures/ecma-version/12/numeric-separators/hex.result.js
raw| 1 | export default { |
| 2 | "type": "Program", |
| 3 | "loc": { |
| 4 | "start": { |
| 5 | "line": 1, |
| 6 | "column": 0 |
| 7 | }, |
| 8 | "end": { |
| 9 | "line": 1, |
| 10 | "column": 11 |
| 11 | } |
| 12 | }, |
| 13 | "range": [ |
| 14 | 0, |
| 15 | 11 |
| 16 | ], |
| 17 | "body": [ |
| 18 | { |
| 19 | "type": "ExpressionStatement", |
| 20 | "loc": { |
| 21 | "start": { |
| 22 | "line": 1, |
| 23 | "column": 0 |
| 24 | }, |
| 25 | "end": { |
| 26 | "line": 1, |
| 27 | "column": 11 |
| 28 | } |
| 29 | }, |
| 30 | "range": [ |
| 31 | 0, |
| 32 | 11 |
| 33 | ], |
| 34 | "expression": { |
| 35 | "type": "Literal", |
| 36 | "loc": { |
| 37 | "start": { |
| 38 | "line": 1, |
| 39 | "column": 0 |
| 40 | }, |
| 41 | "end": { |
| 42 | "line": 1, |
| 43 | "column": 11 |
| 44 | } |
| 45 | }, |
| 46 | "range": [ |
| 47 | 0, |
| 48 | 11 |
| 49 | ], |
| 50 | "value": 0xdeadbeaf, |
| 51 | "raw": "0xdead_beaf" |
| 52 | } |
| 53 | } |
| 54 | ], |
| 55 | "sourceType": "script", |
| 56 | "tokens": [ |
| 57 | { |
| 58 | "type": "Numeric", |
| 59 | "value": "0xdead_beaf", |
| 60 | "loc": { |
| 61 | "start": { |
| 62 | "line": 1, |
| 63 | "column": 0 |
| 64 | }, |
| 65 | "end": { |
| 66 | "line": 1, |
| 67 | "column": 11 |
| 68 | } |
| 69 | }, |
| 70 | "range": [ |
| 71 | 0, |
| 72 | 11 |
| 73 | ] |
| 74 | } |
| 75 | ] |
| 76 | }; |