Debian Codegraph @

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

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