This repository was archived by the owner on Jan 19, 2019. It is now read-only.
File tree 6 files changed +630
-631
lines changed
6 files changed +630
-631
lines changed Original file line number Diff line number Diff line change @@ -331,8 +331,7 @@ module.exports = function convert(config) {
331
331
}
332
332
} ) ;
333
333
334
- // fix end location
335
- result . range [ 1 ] = node . endOfFileToken . pos ;
334
+ result . range [ 1 ] = node . endOfFileToken . end ;
336
335
result . loc = nodeUtils . getLocFor ( node . getStart ( ) , result . range [ 1 ] , ast ) ;
337
336
break ;
338
337
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ Object {
96
96
],
97
97
" loc" : Object {
98
98
" end" : Object {
99
- " column" : 15 ,
100
- " line" : 1 ,
99
+ " column" : 0 ,
100
+ " line" : 2 ,
101
101
},
102
102
" start" : Object {
103
103
" column" : 0 ,
@@ -106,7 +106,7 @@ Object {
106
106
},
107
107
" range" : Array [
108
108
0 ,
109
- 15 ,
109
+ 16 ,
110
110
],
111
111
" sourceType" : " script" ,
112
112
" tokens" : Array [
@@ -501,8 +501,8 @@ Object {
501
501
],
502
502
" loc" : Object {
503
503
" end" : Object {
504
- " column" : 16 ,
505
- " line" : 6 ,
504
+ " column" : 0 ,
505
+ " line" : 7 ,
506
506
},
507
507
" start" : Object {
508
508
" column" : 0 ,
@@ -511,7 +511,7 @@ Object {
511
511
},
512
512
" range" : Array [
513
513
0 ,
514
- 58 ,
514
+ 59 ,
515
515
],
516
516
" sourceType" : " script" ,
517
517
" tokens" : Array [
@@ -1181,8 +1181,8 @@ Object {
1181
1181
],
1182
1182
" loc" : Object {
1183
1183
" end" : Object {
1184
- " column" : 1 ,
1185
- " line" : 9 ,
1184
+ " column" : 0 ,
1185
+ " line" : 10 ,
1186
1186
},
1187
1187
" start" : Object {
1188
1188
" column" : 0 ,
@@ -1191,7 +1191,7 @@ Object {
1191
1191
},
1192
1192
" range" : Array [
1193
1193
0 ,
1194
- 59 ,
1194
+ 60 ,
1195
1195
],
1196
1196
" sourceType" : " script" ,
1197
1197
" tokens" : Array [
@@ -1716,8 +1716,8 @@ Object {
1716
1716
],
1717
1717
" loc" : Object {
1718
1718
" end" : Object {
1719
- " column" : 14 ,
1720
- " line" : 1 ,
1719
+ " column" : 0 ,
1720
+ " line" : 2 ,
1721
1721
},
1722
1722
" start" : Object {
1723
1723
" column" : 0 ,
@@ -1726,7 +1726,7 @@ Object {
1726
1726
},
1727
1727
" range" : Array [
1728
1728
0 ,
1729
- 14 ,
1729
+ 15 ,
1730
1730
],
1731
1731
" sourceType" : " script" ,
1732
1732
" tokens" : Array [
@@ -2219,8 +2219,8 @@ Object {
2219
2219
],
2220
2220
" loc" : Object {
2221
2221
" end" : Object {
2222
- " column" : 12 ,
2223
- " line" : 1 ,
2222
+ " column" : 0 ,
2223
+ " line" : 2 ,
2224
2224
},
2225
2225
" start" : Object {
2226
2226
" column" : 0 ,
@@ -2229,7 +2229,7 @@ Object {
2229
2229
},
2230
2230
" range" : Array [
2231
2231
0 ,
2232
- 12 ,
2232
+ 13 ,
2233
2233
],
2234
2234
" sourceType" : " script" ,
2235
2235
" tokens" : Array [
@@ -2978,8 +2978,8 @@ Object {
2978
2978
],
2979
2979
" loc" : Object {
2980
2980
" end" : Object {
2981
- " column" : 8 ,
2982
- " line" : 2 ,
2981
+ " column" : 0 ,
2982
+ " line" : 3 ,
2983
2983
},
2984
2984
" start" : Object {
2985
2985
" column" : 0 ,
@@ -2988,7 +2988,7 @@ Object {
2988
2988
},
2989
2989
" range" : Array [
2990
2990
0 ,
2991
- 16 ,
2991
+ 17 ,
2992
2992
],
2993
2993
" sourceType" : " script" ,
2994
2994
" tokens" : Array [
You can’t perform that action at this time.
0 commit comments