Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/top-level-await-module/inside-function/output.json

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