Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/record-and-tuple/trailing-comma-comments/output.json

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