Debian Codegraph @

packages/babel-parser/test/fixtures/comments/regression/10230/output.json

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