Debian Codegraph @

test/cases/comments.json

raw
1 {
2 "raws": {
3 "indent": " ",
4 "after": "\n"
5 },
6 "type": "root",
7 "nodes": [
8 {
9 "raws": {
10 "before": "",
11 "left": " ",
12 "inlineRight": " "
13 },
14 "type": "comment",
15 "source": {
16 "start": {
17 "line": 1,
18 "column": 1,
19 "offset": 0
20 },
21 "end": {
22 "line": 2,
23 "column": 11,
24 "offset": 19
25 }
26 },
27 "text": "multi\n line"
28 },
29 {
30 "raws": {
31 "before": "\n",
32 "inline": true,
33 "left": " ",
34 "inlineRight": ""
35 },
36 "type": "comment",
37 "source": {
38 "start": {
39 "line": 3,
40 "column": 1,
41 "offset": 20
42 },
43 "end": {
44 "line": 3,
45 "column": 10,
46 "offset": 29
47 }
48 },
49 "text": "inline"
50 },
51 {
52 "raws": {
53 "before": "\n"
54 },
55 "type": "rule",
56 "nodes": [
57 {
58 "raws": {
59 "before": "\n ",
60 "between": ": "
61 },
62 "type": "decl",
63 "source": {
64 "start": {
65 "line": 5,
66 "column": 3,
67 "offset": 34
68 },
69 "end": {
70 "line": 5,
71 "column": 15,
72 "offset": 46
73 }
74 },
75 "prop": "color",
76 "value": "black"
77 },
78 {
79 "raws": {
80 "before": " ",
81 "inline": true,
82 "left": " ",
83 "inlineRight": ""
84 },
85 "type": "comment",
86 "source": {
87 "start": {
88 "line": 5,
89 "column": 16,
90 "offset": 47
91 },
92 "end": {
93 "line": 5,
94 "column": 23,
95 "offset": 54
96 }
97 },
98 "text": "last"
99 },
100 {
101 "raws": {
102 "before": "\n ",
103 "between": ": "
104 },
105 "type": "decl",
106 "source": {
107 "start": {
108 "line": 6,
109 "column": 3,
110 "offset": 57
111 },
112 "end": {
113 "line": 6,
114 "column": 13,
115 "offset": 67
116 }
117 },
118 "prop": "z-index",
119 "value": "1"
120 }
121 ],
122 "source": {
123 "start": {
124 "line": 4,
125 "column": 1,
126 "offset": 30
127 },
128 "end": {
129 "line": 4,
130 "column": 2,
131 "offset": 31
132 }
133 },
134 "selector": "a"
135 },
136 {
137 "raws": {
138 "before": "\n\n",
139 "inline": true,
140 "left": " ",
141 "inlineRight": ""
142 },
143 "type": "comment",
144 "source": {
145 "start": {
146 "line": 8,
147 "column": 1,
148 "offset": 69
149 },
150 "end": {
151 "line": 8,
152 "column": 5,
153 "offset": 73
154 }
155 },
156 "text": "a"
157 },
158 {
159 "raws": {
160 "before": "\n ",
161 "extraIndent": " ",
162 "inline": true,
163 "left": " ",
164 "inlineRight": ""
165 },
166 "type": "comment",
167 "source": {
168 "start": {
169 "line": 9,
170 "column": 3,
171 "offset": 76
172 },
173 "end": {
174 "line": 9,
175 "column": 18,
176 "offset": 91
177 }
178 },
179 "text": "color: black"
180 }
181 ],
182 "source": {
183 "start": {
184 "line": 1,
185 "column": 1,
186 "offset": 0
187 },
188 "end": {
189 "line": 10,
190 "column": 1,
191 "offset": 92
192 }
193 }
194 }