Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":24,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":24,"index":24}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":16,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":16,"index":16},"identifierName":"a"},
20 "name": "a",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":6,"end":16,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":16,"index":16}},
24 "typeAnnotation": {
25 "type": "TupleTypeAnnotation",
26 "start":8,"end":16,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":16,"index":16}},
27 "types": [
28 {
29 "type": "GenericTypeAnnotation",
30 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15}},
31 "typeParameters": {
32 "type": "TypeParameterInstantiation",
33 "start":12,"end":15,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":15,"index":15}},
34 "params": [
35 {
36 "type": "GenericTypeAnnotation",
37 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}},
38 "typeParameters": null,
39 "id": {
40 "type": "Identifier",
41 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"T"},
42 "name": "T"
43 }
44 }
45 ]
46 },
47 "id": {
48 "type": "Identifier",
49 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"Foo"},
50 "name": "Foo"
51 }
52 }
53 ]
54 }
55 }
56 },
57 "init": {
58 "type": "ArrayExpression",
59 "start":19,"end":24,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":24,"index":24}},
60 "elements": [
61 {
62 "type": "Identifier",
63 "start":20,"end":23,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":23,"index":23},"identifierName":"foo"},
64 "name": "foo"
65 }
66 ]
67 }
68 }
69 ],
70 "kind": "var"
71 }
72 ],
73 "directives": []
74 }
75 }