@@ -1358,7 +1358,27 @@ describe('compiler: parse', () => {
13581358 name : 'on' ,
13591359 rawName : 'v-on.enter' ,
13601360 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+ ] ,
13621382 exp : undefined ,
13631383 loc : {
13641384 start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1377,7 +1397,46 @@ describe('compiler: parse', () => {
13771397 name : 'on' ,
13781398 rawName : 'v-on.enter.exact' ,
13791399 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+ ] ,
13811440 exp : undefined ,
13821441 loc : {
13831442 start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1406,7 +1465,46 @@ describe('compiler: parse', () => {
14061465 source : 'click' ,
14071466 } ,
14081467 } ,
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+ ] ,
14101508 exp : undefined ,
14111509 loc : {
14121510 start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1435,7 +1533,27 @@ describe('compiler: parse', () => {
14351533 source : '[a.b]' ,
14361534 } ,
14371535 } ,
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+ ] ,
14391557 exp : undefined ,
14401558 loc : {
14411559 start : { offset : 5 , line : 1 , column : 6 } ,
@@ -1530,7 +1648,27 @@ describe('compiler: parse', () => {
15301648 source : 'a' ,
15311649 } ,
15321650 } ,
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+ ] ,
15341672 exp : {
15351673 type : NodeTypes . SIMPLE_EXPRESSION ,
15361674 content : 'b' ,
@@ -1569,7 +1707,27 @@ describe('compiler: parse', () => {
15691707 source : 'a' ,
15701708 } ,
15711709 } ,
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+ ] ,
15731731 exp : {
15741732 type : NodeTypes . SIMPLE_EXPRESSION ,
15751733 content : 'b' ,
@@ -1649,7 +1807,27 @@ describe('compiler: parse', () => {
16491807 source : 'a' ,
16501808 } ,
16511809 } ,
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+ ] ,
16531831 exp : {
16541832 type : NodeTypes . SIMPLE_EXPRESSION ,
16551833 content : 'b' ,
0 commit comments