Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-sequence-arrow/output.json

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