Debian Codegraph @

packages/babel-parser/test/fixtures/flow/regression/arrow-function-with-newline/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":10,"index":20}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":10,"index":20}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":10,"index":20}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":10,"index":20}},
16 "returnType": {
17 "type": "TypeAnnotation",
18 "start":10,"end":13,"loc":{"start":{"line":2,"column":0,"index":10},"end":{"line":2,"column":3,"index":13}},
19 "typeAnnotation": {
20 "type": "GenericTypeAnnotation",
21 "start":12,"end":13,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":3,"index":13}},
22 "typeParameters": null,
23 "id": {
24 "type": "Identifier",
25 "start":12,"end":13,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":3,"index":13},"identifierName":"t"},
26 "name": "t"
27 }
28 }
29 },
30 "id": null,
31 "generator": false,
32 "async": true,
33 "params": [
34 {
35 "type": "Identifier",
36 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"f"},
37 "name": "f"
38 }
39 ],
40 "body": {
41 "type": "BlockStatement",
42 "start":17,"end":20,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":10,"index":20}},
43 "body": [],
44 "directives": []
45 }
46 }
47 }
48 ],
49 "directives": []
50 }
51 }