@@ -1358,7 +1358,27 @@ describe('compiler: parse', () => {
1358
1358
name : 'on' ,
1359
1359
rawName : 'v-on.enter' ,
1360
1360
arg : undefined ,
1361
- modifiers : [ 'enter' ] ,
1361
+ modifiers : [
1362
+ {
1363
+ constType : 3 ,
1364
+ content : 'enter' ,
1365
+ isStatic : true ,
1366
+ loc : {
1367
+ end : {
1368
+ column : 16 ,
1369
+ line : 1 ,
1370
+ offset : 15 ,
1371
+ } ,
1372
+ source : 'enter' ,
1373
+ start : {
1374
+ column : 11 ,
1375
+ line : 1 ,
1376
+ offset : 10 ,
1377
+ } ,
1378
+ } ,
1379
+ type : 4 ,
1380
+ } ,
1381
+ ] ,
1362
1382
exp : undefined ,
1363
1383
loc : {
1364
1384
start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1377,7 +1397,46 @@ describe('compiler: parse', () => {
1377
1397
name : 'on' ,
1378
1398
rawName : 'v-on.enter.exact' ,
1379
1399
arg : undefined ,
1380
- modifiers : [ 'enter' , 'exact' ] ,
1400
+ modifiers : [
1401
+ {
1402
+ constType : 3 ,
1403
+ content : 'enter' ,
1404
+ isStatic : true ,
1405
+ loc : {
1406
+ end : {
1407
+ column : 16 ,
1408
+ line : 1 ,
1409
+ offset : 15 ,
1410
+ } ,
1411
+ source : 'enter' ,
1412
+ start : {
1413
+ column : 11 ,
1414
+ line : 1 ,
1415
+ offset : 10 ,
1416
+ } ,
1417
+ } ,
1418
+ type : 4 ,
1419
+ } ,
1420
+ {
1421
+ constType : 3 ,
1422
+ content : 'exact' ,
1423
+ isStatic : true ,
1424
+ loc : {
1425
+ end : {
1426
+ column : 22 ,
1427
+ line : 1 ,
1428
+ offset : 21 ,
1429
+ } ,
1430
+ source : 'exact' ,
1431
+ start : {
1432
+ column : 17 ,
1433
+ line : 1 ,
1434
+ offset : 16 ,
1435
+ } ,
1436
+ } ,
1437
+ type : 4 ,
1438
+ } ,
1439
+ ] ,
1381
1440
exp : undefined ,
1382
1441
loc : {
1383
1442
start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1406,7 +1465,46 @@ describe('compiler: parse', () => {
1406
1465
source : 'click' ,
1407
1466
} ,
1408
1467
} ,
1409
- modifiers : [ 'enter' , 'exact' ] ,
1468
+ modifiers : [
1469
+ {
1470
+ constType : 3 ,
1471
+ content : 'enter' ,
1472
+ isStatic : true ,
1473
+ loc : {
1474
+ end : {
1475
+ column : 22 ,
1476
+ line : 1 ,
1477
+ offset : 21 ,
1478
+ } ,
1479
+ source : 'enter' ,
1480
+ start : {
1481
+ column : 17 ,
1482
+ line : 1 ,
1483
+ offset : 16 ,
1484
+ } ,
1485
+ } ,
1486
+ type : 4 ,
1487
+ } ,
1488
+ {
1489
+ constType : 3 ,
1490
+ content : 'exact' ,
1491
+ isStatic : true ,
1492
+ loc : {
1493
+ end : {
1494
+ column : 28 ,
1495
+ line : 1 ,
1496
+ offset : 27 ,
1497
+ } ,
1498
+ source : 'exact' ,
1499
+ start : {
1500
+ column : 23 ,
1501
+ line : 1 ,
1502
+ offset : 22 ,
1503
+ } ,
1504
+ } ,
1505
+ type : 4 ,
1506
+ } ,
1507
+ ] ,
1410
1508
exp : undefined ,
1411
1509
loc : {
1412
1510
start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1435,7 +1533,27 @@ describe('compiler: parse', () => {
1435
1533
source : '[a.b]' ,
1436
1534
} ,
1437
1535
} ,
1438
- modifiers : [ 'camel' ] ,
1536
+ modifiers : [
1537
+ {
1538
+ constType : 3 ,
1539
+ content : 'camel' ,
1540
+ isStatic : true ,
1541
+ loc : {
1542
+ end : {
1543
+ column : 22 ,
1544
+ line : 1 ,
1545
+ offset : 21 ,
1546
+ } ,
1547
+ source : 'camel' ,
1548
+ start : {
1549
+ column : 17 ,
1550
+ line : 1 ,
1551
+ offset : 16 ,
1552
+ } ,
1553
+ } ,
1554
+ type : 4 ,
1555
+ } ,
1556
+ ] ,
1439
1557
exp : undefined ,
1440
1558
loc : {
1441
1559
start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1530,7 +1648,27 @@ describe('compiler: parse', () => {
1530
1648
source : 'a' ,
1531
1649
} ,
1532
1650
} ,
1533
- modifiers : [ 'prop' ] ,
1651
+ modifiers : [
1652
+ {
1653
+ constType : 0 ,
1654
+ content : 'prop' ,
1655
+ isStatic : false ,
1656
+ loc : {
1657
+ end : {
1658
+ column : 1 ,
1659
+ line : 1 ,
1660
+ offset : 0 ,
1661
+ } ,
1662
+ source : '' ,
1663
+ start : {
1664
+ column : 1 ,
1665
+ line : 1 ,
1666
+ offset : 0 ,
1667
+ } ,
1668
+ } ,
1669
+ type : 4 ,
1670
+ } ,
1671
+ ] ,
1534
1672
exp : {
1535
1673
type : NodeTypes . SIMPLE_EXPRESSION ,
1536
1674
content : 'b' ,
@@ -1569,7 +1707,27 @@ describe('compiler: parse', () => {
1569
1707
source : 'a' ,
1570
1708
} ,
1571
1709
} ,
1572
- modifiers : [ 'sync' ] ,
1710
+ modifiers : [
1711
+ {
1712
+ constType : 3 ,
1713
+ content : 'sync' ,
1714
+ isStatic : true ,
1715
+ loc : {
1716
+ end : {
1717
+ column : 13 ,
1718
+ line : 1 ,
1719
+ offset : 12 ,
1720
+ } ,
1721
+ source : 'sync' ,
1722
+ start : {
1723
+ column : 9 ,
1724
+ line : 1 ,
1725
+ offset : 8 ,
1726
+ } ,
1727
+ } ,
1728
+ type : 4 ,
1729
+ } ,
1730
+ ] ,
1573
1731
exp : {
1574
1732
type : NodeTypes . SIMPLE_EXPRESSION ,
1575
1733
content : 'b' ,
@@ -1649,7 +1807,27 @@ describe('compiler: parse', () => {
1649
1807
source : 'a' ,
1650
1808
} ,
1651
1809
} ,
1652
- modifiers : [ 'enter' ] ,
1810
+ modifiers : [
1811
+ {
1812
+ constType : 3 ,
1813
+ content : 'enter' ,
1814
+ isStatic : true ,
1815
+ loc : {
1816
+ end : {
1817
+ column : 14 ,
1818
+ line : 1 ,
1819
+ offset : 13 ,
1820
+ } ,
1821
+ source : 'enter' ,
1822
+ start : {
1823
+ column : 9 ,
1824
+ line : 1 ,
1825
+ offset : 8 ,
1826
+ } ,
1827
+ } ,
1828
+ type : 4 ,
1829
+ } ,
1830
+ ] ,
1653
1831
exp : {
1654
1832
type : NodeTypes . SIMPLE_EXPRESSION ,
1655
1833
content : 'b' ,
0 commit comments