Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/object/invalid-property-initializer-in-call/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
4 "errors": [
5 "SyntaxError: Invalid shorthand property initializer. (1:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
16 "expression": {
17 "type": "CallExpression",
18 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
19 "callee": {
20 "type": "Identifier",
21 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"f"},
22 "name": "f"
23 },
24 "arguments": [
25 {
26 "type": "ObjectExpression",
27 "start":2,"end":9,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":9,"index":9}},
28 "properties": [
29 {
30 "type": "ObjectProperty",
31 "start":3,"end":8,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":8,"index":8}},
32 "method": false,
33 "key": {
34 "type": "Identifier",
35 "start":3,"end":4,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":4,"index":4},"identifierName":"x"},
36 "name": "x"
37 },
38 "computed": false,
39 "shorthand": true,
40 "value": {
41 "type": "AssignmentPattern",
42 "start":3,"end":8,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":8,"index":8}},
43 "left": {
44 "type": "Identifier",
45 "start":3,"end":4,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":4,"index":4},"identifierName":"x"},
46 "name": "x"
47 },
48 "right": {
49 "type": "NumericLiteral",
50 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8}},
51 "extra": {
52 "rawValue": 0,
53 "raw": "0"
54 },
55 "value": 0
56 }
57 },
58 "extra": {
59 "shorthand": true
60 }
61 }
62 ]
63 }
64 ]
65 }
66 }
67 ],
68 "directives": []
69 }
70 }