Debian Codegraph @

packages/babel-parser/test/fixtures/flow/tuples/3/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":26,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":26,"index":26}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":17,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":17,"index":17},"identifierName":"a"},
20 "name": "a",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":6,"end":17,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":17,"index":17}},
24 "typeAnnotation": {
25 "type": "TupleTypeAnnotation",
26 "start":8,"end":17,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":17,"index":17}},
27 "types": [
28 {
29 "type": "NumberTypeAnnotation",
30 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15}}
31 }
32 ]
33 }
34 }
35 },
36 "init": {
37 "type": "ArrayExpression",
38 "start":20,"end":26,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":26,"index":26}},
39 "extra": {
40 "trailingComma": 24
41 },
42 "elements": [
43 {
44 "type": "NumericLiteral",
45 "start":21,"end":24,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":24,"index":24}},
46 "extra": {
47 "rawValue": 123,
48 "raw": "123"
49 },
50 "value": 123
51 }
52 ]
53 }
54 }
55 ],
56 "kind": "var"
57 }
58 ],
59 "directives": []
60 }
61 }