Debian Codegraph @

packages/babel-parser/test/fixtures/flow/enum-declaration/symbol/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":30}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "EnumDeclaration",
12 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":30}},
13 "id": {
14 "type": "Identifier",
15 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"E"},
16 "name": "E"
17 },
18 "body": {
19 "type": "EnumSymbolBody",
20 "start":7,"end":30,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":4,"column":1,"index":30}},
21 "hasUnknownMembers": false,
22 "members": [
23 {
24 "type": "EnumDefaultedMember",
25 "start":21,"end":22,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":3,"index":22}},
26 "id": {
27 "type": "Identifier",
28 "start":21,"end":22,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":3,"index":22},"identifierName":"A"},
29 "name": "A"
30 }
31 },
32 {
33 "type": "EnumDefaultedMember",
34 "start":26,"end":27,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":3,"index":27}},
35 "id": {
36 "type": "Identifier",
37 "start":26,"end":27,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":3,"index":27},"identifierName":"B"},
38 "name": "B"
39 }
40 }
41 ]
42 }
43 }
44 ],
45 "directives": []
46 }
47 }