| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":17,"index":40}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Unexpected keyword 'const'. (1:4)", |
| 6 |
"SyntaxError: Escape sequence in keyword const. (1:4)", |
| 7 |
"SyntaxError: Escape sequence in keyword const. (3:0)" |
| 8 |
], |
| 9 |
"program": { |
| 10 |
"type": "Program", |
| 11 |
"start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":17,"index":40}}, |
| 12 |
"sourceType": "script", |
| 13 |
"interpreter": null, |
| 14 |
"body": [ |
| 15 |
{ |
| 16 |
"type": "VariableDeclaration", |
| 17 |
"start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}}, |
| 18 |
"declarations": [ |
| 19 |
{ |
| 20 |
"type": "VariableDeclarator", |
| 21 |
"start":4,"end":20,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":20,"index":20}}, |
| 22 |
"id": { |
| 23 |
"type": "Identifier", |
| 24 |
"start":4,"end":14,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":14,"index":14},"identifierName":"const"}, |
| 25 |
"name": "const" |
| 26 |
}, |
| 27 |
"init": { |
| 28 |
"type": "NumericLiteral", |
| 29 |
"start":17,"end":20,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":20,"index":20}}, |
| 30 |
"extra": { |
| 31 |
"rawValue": 123, |
| 32 |
"raw": "123" |
| 33 |
}, |
| 34 |
"value": 123 |
| 35 |
} |
| 36 |
} |
| 37 |
], |
| 38 |
"kind": "var" |
| 39 |
}, |
| 40 |
{ |
| 41 |
"type": "VariableDeclaration", |
| 42 |
"start":23,"end":40,"loc":{"start":{"line":3,"column":0,"index":23},"end":{"line":3,"column":17,"index":40}}, |
| 43 |
"declarations": [ |
| 44 |
{ |
| 45 |
"type": "VariableDeclarator", |
| 46 |
"start":34,"end":39,"loc":{"start":{"line":3,"column":11,"index":34},"end":{"line":3,"column":16,"index":39}}, |
| 47 |
"id": { |
| 48 |
"type": "Identifier", |
| 49 |
"start":34,"end":35,"loc":{"start":{"line":3,"column":11,"index":34},"end":{"line":3,"column":12,"index":35},"identifierName":"x"}, |
| 50 |
"name": "x" |
| 51 |
}, |
| 52 |
"init": { |
| 53 |
"type": "NumericLiteral", |
| 54 |
"start":38,"end":39,"loc":{"start":{"line":3,"column":15,"index":38},"end":{"line":3,"column":16,"index":39}}, |
| 55 |
"extra": { |
| 56 |
"rawValue": 2, |
| 57 |
"raw": "2" |
| 58 |
}, |
| 59 |
"value": 2 |
| 60 |
} |
| 61 |
} |
| 62 |
], |
| 63 |
"kind": "const" |
| 64 |
} |
| 65 |
], |
| 66 |
"directives": [] |
| 67 |
} |
| 68 |
} |