Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/35/output.json

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