@@ -9,7 +9,7 @@ test('single anonymous layer without body', () => {
99 name : '__anonymous-1__' ,
1010 is_anonymous : true ,
1111 children : [ ] ,
12- locations : [ { line : 1 , start : 0 } ] ,
12+ locations : [ { line : 1 , column : 1 , start : 0 } ] ,
1313 } ,
1414 ]
1515 assert . equal ( actual , expected )
@@ -22,7 +22,7 @@ test('single anonymous layer with body', () => {
2222 name : '__anonymous-1__' ,
2323 is_anonymous : true ,
2424 children : [ ] ,
25- locations : [ { line : 1 , start : 0 } ] ,
25+ locations : [ { line : 1 , column : 1 , start : 0 } ] ,
2626 } ,
2727 ]
2828 assert . equal ( actual , expected )
@@ -35,7 +35,7 @@ test('single named layer without body', () => {
3535 name : 'first' ,
3636 is_anonymous : false ,
3737 children : [ ] ,
38- locations : [ { line : 1 , start : 0 } ] ,
38+ locations : [ { line : 1 , column : 1 , start : 0 } ] ,
3939 } ,
4040 ]
4141 assert . equal ( actual , expected )
@@ -48,7 +48,7 @@ test('single named layer with body', () => {
4848 name : 'first' ,
4949 is_anonymous : false ,
5050 children : [ ] ,
51- locations : [ { line : 1 , start : 0 } ] ,
51+ locations : [ { line : 1 , column : 1 , start : 0 } ] ,
5252 } ,
5353 ]
5454 assert . equal ( actual , expected )
@@ -61,13 +61,13 @@ test('multiple named layers in one line', () => {
6161 name : 'first' ,
6262 is_anonymous : false ,
6363 children : [ ] ,
64- locations : [ { line : 1 , start : 0 } ] ,
64+ locations : [ { line : 1 , column : 1 , start : 0 } ] ,
6565 } ,
6666 {
6767 name : 'second' ,
6868 is_anonymous : false ,
6969 children : [ ] ,
70- locations : [ { line : 1 , start : 0 } ] ,
70+ locations : [ { line : 1 , column : 1 , start : 0 } ] ,
7171 } ,
7272 ]
7373 assert . equal ( actual , expected )
@@ -84,8 +84,8 @@ test('repeated use of the same layer name', () => {
8484 is_anonymous : false ,
8585 children : [ ] ,
8686 locations : [
87- { line : 2 , start : 3 } ,
88- { line : 3 , start : 21 } ,
87+ { line : 2 , column : 3 , start : 3 } ,
88+ { line : 3 , column : 3 , start : 21 } ,
8989 ] ,
9090 } ,
9191 ]
@@ -106,23 +106,23 @@ test('nested layers', () => {
106106 {
107107 name : 'first' ,
108108 is_anonymous : false ,
109- locations : [ { line : 2 , start : 3 } ] ,
109+ locations : [ { line : 2 , column : 3 , start : 3 } ] ,
110110 children : [
111111 {
112112 name : 'second' ,
113113 is_anonymous : false ,
114- locations : [ { line : 3 , start : 21 } ] ,
114+ locations : [ { line : 3 , column : 4 , start : 21 } ] ,
115115 children : [
116116 {
117117 name : 'third' ,
118118 is_anonymous : false ,
119- locations : [ { line : 4 , start : 41 } ] ,
119+ locations : [ { line : 4 , column : 5 , start : 41 } ] ,
120120 children : [ ] ,
121121 } ,
122122 {
123123 name : 'fourth' ,
124124 is_anonymous : false ,
125- locations : [ { line : 6 , start : 79 } ] ,
125+ locations : [ { line : 6 , column : 5 , start : 79 } ] ,
126126 children : [ ] ,
127127 } ,
128128 ] ,
@@ -143,13 +143,13 @@ test('nested layers with anonymous layers', () => {
143143 {
144144 name : '__anonymous-1__' ,
145145 is_anonymous : true ,
146- locations : [ { line : 2 , start : 3 } ] ,
146+ locations : [ { line : 2 , column : 3 , start : 3 } ] ,
147147 children : [
148148 {
149149 name : '__anonymous-2__' ,
150150 is_anonymous : true ,
151151 children : [ ] ,
152- locations : [ { line : 3 , start : 15 } ] ,
152+ locations : [ { line : 3 , column : 4 , start : 15 } ] ,
153153 } ,
154154 ] ,
155155 } ,
@@ -166,13 +166,13 @@ test('consecutive anonymous layers', () => {
166166 {
167167 name : '__anonymous-1__' ,
168168 is_anonymous : true ,
169- locations : [ { line : 2 , start : 3 } ] ,
169+ locations : [ { line : 2 , column : 3 , start : 3 } ] ,
170170 children : [ ] ,
171171 } ,
172172 {
173173 name : '__anonymous-2__' ,
174174 is_anonymous : true ,
175- locations : [ { line : 3 , start : 15 } ] ,
175+ locations : [ { line : 3 , column : 3 , start : 15 } ] ,
176176 children : [ ] ,
177177 } ,
178178 ]
@@ -191,20 +191,20 @@ test('nested layers with anonymous layers and duplicate names', () => {
191191 {
192192 name : '__anonymous-1__' ,
193193 is_anonymous : true ,
194- locations : [ { line : 2 , start : 3 } ] ,
194+ locations : [ { line : 2 , column : 3 , start : 3 } ] ,
195195 children : [
196196 {
197197 name : 'first' ,
198198 is_anonymous : false ,
199199 children : [ ] ,
200- locations : [ { line : 3 , start : 15 } ] ,
200+ locations : [ { line : 3 , column : 4 , start : 15 } ] ,
201201 } ,
202202 ] ,
203203 } ,
204204 {
205205 name : 'first' ,
206206 is_anonymous : false ,
207- locations : [ { line : 6 , start : 38 } ] ,
207+ locations : [ { line : 6 , column : 3 , start : 38 } ] ,
208208 children : [ ] ,
209209 } ,
210210 ]
0 commit comments