Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/record-and-tuple/bar-flow/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":35,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":35,"index":35}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":22,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":22,"index":22},"identifierName":"a"},
20 "name": "a",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":5,"end":22,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":22,"index":22}},
24 "typeAnnotation": {
25 "type": "ObjectTypeAnnotation",
26 "start":7,"end":22,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":22,"index":22}},
27 "callProperties": [],
28 "properties": [
29 {
30 "type": "ObjectTypeProperty",
31 "start":10,"end":19,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":19,"index":19}},
32 "key": {
33 "type": "Identifier",
34 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"x"},
35 "name": "x"
36 },
37 "static": false,
38 "proto": false,
39 "kind": "init",
40 "method": false,
41 "value": {
42 "type": "NumberTypeAnnotation",
43 "start":13,"end":19,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":19,"index":19}}
44 },
45 "variance": null,
46 "optional": false
47 }
48 ],
49 "indexers": [],
50 "internalSlots": [],
51 "exact": true,
52 "inexact": false
53 }
54 }
55 },
56 "init": {
57 "type": "RecordExpression",
58 "start":25,"end":35,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":35,"index":35}},
59 "properties": [
60 {
61 "type": "ObjectProperty",
62 "start":28,"end":32,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":32,"index":32}},
63 "method": false,
64 "key": {
65 "type": "Identifier",
66 "start":28,"end":29,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":29,"index":29},"identifierName":"x"},
67 "name": "x"
68 },
69 "computed": false,
70 "shorthand": false,
71 "value": {
72 "type": "NumericLiteral",
73 "start":31,"end":32,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":32,"index":32}},
74 "extra": {
75 "rawValue": 2,
76 "raw": "2"
77 },
78 "value": 2
79 }
80 }
81 ]
82 }
83 }
84 ],
85 "kind": "var"
86 }
87 ],
88 "directives": []
89 }
90 }