Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":40,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":40,"index":40}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":24,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":24,"index":24},"identifierName":"a"},
20 "name": "a",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":6,"end":24,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":24,"index":24}},
24 "typeAnnotation": {
25 "type": "TupleTypeAnnotation",
26 "start":8,"end":24,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":24,"index":24}},
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 "type": "StringTypeAnnotation",
34 "start":17,"end":23,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":23,"index":23}}
35 }
36 ]
37 }
38 }
39 },
40 "init": {
41 "type": "ArrayExpression",
42 "start":27,"end":40,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":40,"index":40}},
43 "elements": [
44 {
45 "type": "NumericLiteral",
46 "start":28,"end":31,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":31,"index":31}},
47 "extra": {
48 "rawValue": 123,
49 "raw": "123"
50 },
51 "value": 123
52 },
53 {
54 "type": "StringLiteral",
55 "start":33,"end":39,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":39,"index":39}},
56 "extra": {
57 "rawValue": "duck",
58 "raw": "\"duck\""
59 },
60 "value": "duck"
61 }
62 ]
63 }
64 }
65 ],
66 "kind": "var"
67 }
68 ],
69 "directives": []
70 }
71 }