@@ -279,7 +279,14 @@ test('mdxJsxFromMarkdown', async function (t) {
279
279
type : 'mdxJsxTextElement' ,
280
280
name : 'b' ,
281
281
attributes : [
282
- { type : 'mdxJsxExpressionAttribute' , value : '1 + 1' }
282
+ {
283
+ type : 'mdxJsxExpressionAttribute' ,
284
+ value : '1 + 1' ,
285
+ position : {
286
+ start : { line : 1 , column : 6 , offset : 5 } ,
287
+ end : { line : 1 , column : 13 , offset : 12 }
288
+ }
289
+ }
283
290
] ,
284
291
children : [ ]
285
292
} ,
@@ -364,7 +371,14 @@ test('mdxJsxFromMarkdown', async function (t) {
364
371
type : 'mdxJsxTextElement' ,
365
372
name : 'b' ,
366
373
attributes : [
367
- { type : 'mdxJsxExpressionAttribute' , value : '...c' }
374
+ {
375
+ type : 'mdxJsxExpressionAttribute' ,
376
+ value : '...c' ,
377
+ position : {
378
+ start : { line : 1 , column : 6 , offset : 5 } ,
379
+ end : { line : 1 , column : 12 , offset : 11 }
380
+ }
381
+ }
368
382
] ,
369
383
children : [ ]
370
384
} ,
@@ -395,7 +409,11 @@ test('mdxJsxFromMarkdown', async function (t) {
395
409
attributes : [
396
410
{
397
411
type : 'mdxJsxExpressionAttribute' ,
398
- value : '...{b: 1, c: Infinity, d: false}'
412
+ value : '...{b: 1, c: Infinity, d: false}' ,
413
+ position : {
414
+ start : { line : 1 , column : 4 , offset : 3 } ,
415
+ end : { line : 1 , column : 38 , offset : 37 }
416
+ }
399
417
}
400
418
] ,
401
419
children : [ ]
@@ -428,6 +446,10 @@ test('mdxJsxFromMarkdown', async function (t) {
428
446
{
429
447
type : 'mdxJsxExpressionAttribute' ,
430
448
value : '...b' ,
449
+ position : {
450
+ start : { line : 1 , column : 4 , offset : 3 } ,
451
+ end : { line : 1 , column : 10 , offset : 9 }
452
+ } ,
431
453
data : {
432
454
estree : {
433
455
type : 'Program' ,
@@ -1555,7 +1577,14 @@ test('mdxJsxFromMarkdown', async function (t) {
1555
1577
type : 'mdxJsxTextElement' ,
1556
1578
name : 'b' ,
1557
1579
attributes : [
1558
- { type : 'mdxJsxExpressionAttribute' , value : 'c\nd' }
1580
+ {
1581
+ type : 'mdxJsxExpressionAttribute' ,
1582
+ value : 'c\nd' ,
1583
+ position : {
1584
+ start : { line : 1 , column : 8 , offset : 7 } ,
1585
+ end : { line : 2 , column : 5 , offset : 14 }
1586
+ }
1587
+ }
1559
1588
] ,
1560
1589
children : [ ]
1561
1590
} ,
@@ -1593,7 +1622,14 @@ test('mdxJsxFromMarkdown', async function (t) {
1593
1622
type : 'mdxJsxTextElement' ,
1594
1623
name : 'b' ,
1595
1624
attributes : [
1596
- { type : 'mdxJsxExpressionAttribute' , value : '...[1,\n2]' }
1625
+ {
1626
+ type : 'mdxJsxExpressionAttribute' ,
1627
+ value : '...[1,\n2]' ,
1628
+ position : {
1629
+ start : { line : 1 , column : 8 , offset : 7 } ,
1630
+ end : { line : 2 , column : 6 , offset : 20 }
1631
+ }
1632
+ }
1597
1633
] ,
1598
1634
children : [ ]
1599
1635
} ,
0 commit comments