Debian Codegraph @

packages/babel-parser/test/fixtures/flow/regression/issue-593/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":27,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":27,"index":27}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":10,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":10,"index":10},"identifierName":"fail"},
20 "name": "fail"
21 },
22 "init": {
23 "type": "ArrowFunctionExpression",
24 "start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":27,"index":27}},
25 "predicate": null,
26 "returnType": {
27 "type": "TypeAnnotation",
28 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18}},
29 "typeAnnotation": {
30 "type": "GenericTypeAnnotation",
31 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18}},
32 "typeParameters": null,
33 "id": {
34 "type": "Identifier",
35 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"X"},
36 "name": "X"
37 }
38 }
39 },
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [],
44 "body": {
45 "type": "JSXElement",
46 "start":22,"end":27,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":27,"index":27}},
47 "openingElement": {
48 "type": "JSXOpeningElement",
49 "start":22,"end":27,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":27,"index":27}},
50 "name": {
51 "type": "JSXIdentifier",
52 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24}},
53 "name": "x"
54 },
55 "attributes": [],
56 "selfClosing": true
57 },
58 "closingElement": null,
59 "children": []
60 }
61 }
62 }
63 ],
64 "kind": "const"
65 }
66 ],
67 "directives": []
68 }
69 }