Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-export-dflt-async-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
4 "errors": [
5 "SyntaxError: Missing semicolon. (1:25)",
6 "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (1:41)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
11 "sourceType": "module",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExportDefaultDeclaration",
16 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
17 "declaration": {
18 "type": "Identifier",
19 "start":15,"end":25,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":25,"index":25},"identifierName":"async"},
20 "name": "async"
21 }
22 },
23 {
24 "type": "FunctionDeclaration",
25 "start":26,"end":50,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":50,"index":50}},
26 "id": {
27 "type": "Identifier",
28 "start":35,"end":36,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":36,"index":36},"identifierName":"y"},
29 "name": "y"
30 },
31 "generator": false,
32 "async": false,
33 "params": [],
34 "body": {
35 "type": "BlockStatement",
36 "start":39,"end":50,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":50,"index":50}},
37 "body": [
38 {
39 "type": "ExpressionStatement",
40 "start":41,"end":48,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":48,"index":48}},
41 "expression": {
42 "type": "AwaitExpression",
43 "start":41,"end":48,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":48,"index":48}},
44 "argument": {
45 "type": "Identifier",
46 "start":47,"end":48,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":48,"index":48},"identifierName":"x"},
47 "name": "x"
48 }
49 }
50 }
51 ],
52 "directives": []
53 }
54 }
55 ],
56 "directives": []
57 }
58 }