Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-call/parenthesized-argument-object-with-assignment/output.json

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