Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/invalid-await-with-object-exp-in-function/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":35}},
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":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":35}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":35}},
16 "id": {
17 "type": "Identifier",
18 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "generator": false,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":15,"end":35,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":3,"column":1,"index":35}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":19,"end":33,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":16,"index":33}},
31 "expression": {
32 "type": "AwaitExpression",
33 "start":19,"end":32,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":15,"index":32}},
34 "argument": {
35 "type": "ObjectExpression",
36 "start":25,"end":32,"loc":{"start":{"line":2,"column":8,"index":25},"end":{"line":2,"column":15,"index":32}},
37 "properties": [
38 {
39 "type": "ObjectProperty",
40 "start":27,"end":30,"loc":{"start":{"line":2,"column":10,"index":27},"end":{"line":2,"column":13,"index":30}},
41 "method": false,
42 "key": {
43 "type": "Identifier",
44 "start":27,"end":30,"loc":{"start":{"line":2,"column":10,"index":27},"end":{"line":2,"column":13,"index":30},"identifierName":"foo"},
45 "name": "foo"
46 },
47 "computed": false,
48 "shorthand": true,
49 "value": {
50 "type": "Identifier",
51 "start":27,"end":30,"loc":{"start":{"line":2,"column":10,"index":27},"end":{"line":2,"column":13,"index":30},"identifierName":"foo"},
52 "name": "foo"
53 },
54 "extra": {
55 "shorthand": true
56 }
57 }
58 ]
59 }
60 }
61 }
62 ],
63 "directives": []
64 }
65 }
66 ],
67 "directives": []
68 }
69 }