Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
4 "errors": [
5 "SyntaxError: Can not use 'await' as identifier inside an async function. (1:20)",
6 "SyntaxError: Missing semicolon. (1:30)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
17 "expression": {
18 "type": "FunctionExpression",
19 "start":1,"end":34,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":34,"index":34}},
20 "id": null,
21 "generator": false,
22 "async": true,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":18,"end":34,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":34,"index":34}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30}},
31 "expression": {
32 "type": "Identifier",
33 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30},"identifierName":"await"},
34 "name": "await"
35 }
36 },
37 {
38 "type": "ExpressionStatement",
39 "start":31,"end":32,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":32,"index":32}},
40 "expression": {
41 "type": "Identifier",
42 "start":31,"end":32,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":32,"index":32},"identifierName":"x"},
43 "name": "x"
44 }
45 }
46 ],
47 "directives": []
48 },
49 "extra": {
50 "parenthesized": true,
51 "parenStart": 0
52 }
53 }
54 }
55 ],
56 "directives": []
57 }
58 }