Debian Codegraph @

test/cases/atrules.json

raw
1 {
2 "raws": {
3 "indent": " ",
4 "after": "\n"
5 },
6 "type": "root",
7 "nodes": [
8 {
9 "raws": {
10 "before": "",
11 "afterName": ""
12 },
13 "type": "atrule",
14 "name": "test",
15 "source": {
16 "start": {
17 "line": 1,
18 "column": 1,
19 "offset": 0
20 },
21 "end": {
22 "line": 1,
23 "column": 6,
24 "offset": 5
25 }
26 },
27 "params": ""
28 },
29 {
30 "raws": {
31 "before": "\n\n",
32 "afterName": " "
33 },
34 "type": "atrule",
35 "name": "charset",
36 "source": {
37 "start": {
38 "line": 3,
39 "column": 1,
40 "offset": 7
41 },
42 "end": {
43 "line": 3,
44 "column": 17,
45 "offset": 23
46 }
47 },
48 "params": "\"UTF-8\""
49 },
50 {
51 "raws": {
52 "before": "\n\n",
53 "afterName": " "
54 },
55 "type": "atrule",
56 "name": "supports",
57 "source": {
58 "start": {
59 "line": 5,
60 "column": 1,
61 "offset": 25
62 },
63 "end": {
64 "line": 6,
65 "column": 30,
66 "offset": 80
67 }
68 },
69 "params": "(color: black),\n (background: black)",
70 "nodes": [
71 {
72 "raws": {
73 "before": "\n ",
74 "afterName": " ",
75 "params": {
76 "value": "(max-width: 400px) ",
77 "raw": "(max-width: /*<=*/ 400px) /* mobile */",
78 "sss": "(max-width: /*<=*/ 400px) // mobile"
79 }
80 },
81 "type": "atrule",
82 "name": "media",
83 "source": {
84 "start": {
85 "line": 7,
86 "column": 3,
87 "offset": 83
88 },
89 "end": {
90 "line": 7,
91 "column": 45,
92 "offset": 125
93 }
94 },
95 "params": "(max-width: 400px) ",
96 "nodes": [
97 {
98 "raws": {
99 "before": "\n ",
100 "inline": true,
101 "left": " ",
102 "inlineRight": ""
103 },
104 "type": "comment",
105 "source": {
106 "start": {
107 "line": 8,
108 "column": 5,
109 "offset": 130
110 },
111 "end": {
112 "line": 8,
113 "column": 23,
114 "offset": 148
115 }
116 },
117 "text": "write code here"
118 }
119 ]
120 }
121 ]
122 }
123 ],
124 "source": {
125 "start": {
126 "line": 1,
127 "column": 1,
128 "offset": 0
129 },
130 "end": {
131 "line": 9,
132 "column": 1,
133 "offset": 149
134 }
135 }
136 }