Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":44}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":44}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":44}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":43,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":3,"column":1,"index":43}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"map"},
20 "name": "map"
21 },
22 "init": {
23 "type": "ObjectExpression",
24 "start":12,"end":43,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":3,"column":1,"index":43}},
25 "properties": [
26 {
27 "type": "ObjectProperty",
28 "start":16,"end":41,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":27,"index":41}},
29 "method": false,
30 "computed": true,
31 "key": {
32 "type": "BinaryExpression",
33 "start":17,"end":26,"loc":{"start":{"line":2,"column":3,"index":17},"end":{"line":2,"column":12,"index":26}},
34 "left": {
35 "type": "Identifier",
36 "start":17,"end":20,"loc":{"start":{"line":2,"column":3,"index":17},"end":{"line":2,"column":6,"index":20},"identifierName":"age"},
37 "name": "age"
38 },
39 "operator": "<=",
40 "right": {
41 "type": "NumericLiteral",
42 "start":24,"end":26,"loc":{"start":{"line":2,"column":10,"index":24},"end":{"line":2,"column":12,"index":26}},
43 "extra": {
44 "rawValue": 17,
45 "raw": "17"
46 },
47 "value": 17
48 }
49 },
50 "shorthand": false,
51 "value": {
52 "type": "StringLiteral",
53 "start":30,"end":41,"loc":{"start":{"line":2,"column":16,"index":30},"end":{"line":2,"column":27,"index":41}},
54 "extra": {
55 "rawValue": "Too young",
56 "raw": "'Too young'"
57 },
58 "value": "Too young"
59 }
60 }
61 ]
62 }
63 }
64 ],
65 "kind": "const"
66 }
67 ],
68 "directives": []
69 }
70 }