| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":44}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Invalid shorthand property initializer. (2:6)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":44}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "VariableDeclaration", |
| 15 |
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":44}}, |
| 16 |
"declarations": [ |
| 17 |
{ |
| 18 |
"type": "VariableDeclarator", |
| 19 |
"start":6,"end":43,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":4,"column":1,"index":43}}, |
| 20 |
"id": { |
| 21 |
"type": "Identifier", |
| 22 |
"start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"obj"}, |
| 23 |
"name": "obj" |
| 24 |
}, |
| 25 |
"init": { |
| 26 |
"type": "ObjectExpression", |
| 27 |
"start":12,"end":43,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":4,"column":1,"index":43}}, |
| 28 |
"properties": [ |
| 29 |
{ |
| 30 |
"type": "ObjectProperty", |
| 31 |
"start":16,"end":25,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":11,"index":25}}, |
| 32 |
"method": false, |
| 33 |
"key": { |
| 34 |
"type": "Identifier", |
| 35 |
"start":16,"end":19,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":5,"index":19},"identifierName":"foo"}, |
| 36 |
"name": "foo" |
| 37 |
}, |
| 38 |
"computed": false, |
| 39 |
"shorthand": true, |
| 40 |
"value": { |
| 41 |
"type": "AssignmentPattern", |
| 42 |
"start":16,"end":25,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":11,"index":25}}, |
| 43 |
"left": { |
| 44 |
"type": "Identifier", |
| 45 |
"start":16,"end":19,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":5,"index":19},"identifierName":"foo"}, |
| 46 |
"name": "foo" |
| 47 |
}, |
| 48 |
"right": { |
| 49 |
"type": "NumericLiteral", |
| 50 |
"start":22,"end":25,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":11,"index":25}}, |
| 51 |
"extra": { |
| 52 |
"rawValue": 123, |
| 53 |
"raw": "123" |
| 54 |
}, |
| 55 |
"value": 123 |
| 56 |
} |
| 57 |
}, |
| 58 |
"extra": { |
| 59 |
"shorthand": true |
| 60 |
} |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "ObjectProperty", |
| 64 |
"start":29,"end":41,"loc":{"start":{"line":3,"column":2,"index":29},"end":{"line":3,"column":14,"index":41}}, |
| 65 |
"method": false, |
| 66 |
"key": { |
| 67 |
"type": "Identifier", |
| 68 |
"start":29,"end":32,"loc":{"start":{"line":3,"column":2,"index":29},"end":{"line":3,"column":5,"index":32},"identifierName":"bar"}, |
| 69 |
"name": "bar" |
| 70 |
}, |
| 71 |
"computed": false, |
| 72 |
"shorthand": false, |
| 73 |
"value": { |
| 74 |
"type": "AssignmentExpression", |
| 75 |
"start":34,"end":41,"loc":{"start":{"line":3,"column":7,"index":34},"end":{"line":3,"column":14,"index":41}}, |
| 76 |
"operator": "=", |
| 77 |
"left": { |
| 78 |
"type": "Identifier", |
| 79 |
"start":34,"end":35,"loc":{"start":{"line":3,"column":7,"index":34},"end":{"line":3,"column":8,"index":35},"identifierName":"x"}, |
| 80 |
"name": "x" |
| 81 |
}, |
| 82 |
"right": { |
| 83 |
"type": "NumericLiteral", |
| 84 |
"start":38,"end":41,"loc":{"start":{"line":3,"column":11,"index":38},"end":{"line":3,"column":14,"index":41}}, |
| 85 |
"extra": { |
| 86 |
"rawValue": 123, |
| 87 |
"raw": "123" |
| 88 |
}, |
| 89 |
"value": 123 |
| 90 |
} |
| 91 |
} |
| 92 |
} |
| 93 |
] |
| 94 |
} |
| 95 |
} |
| 96 |
], |
| 97 |
"kind": "const" |
| 98 |
} |
| 99 |
], |
| 100 |
"directives": [] |
| 101 |
} |
| 102 |
} |