55 type IfIRNode ,
66 transformChildren ,
77 transformElement ,
8- transformRef ,
8+ transformTemplateRef ,
99 transformVFor ,
1010 transformVIf ,
1111} from '../../src'
@@ -15,7 +15,7 @@ const compileWithTransformRef = makeCompile({
1515 nodeTransforms : [
1616 transformVIf ,
1717 transformVFor ,
18- transformRef ,
18+ transformTemplateRef ,
1919 transformElement ,
2020 transformChildren ,
2121 ] ,
@@ -32,7 +32,7 @@ describe('compiler: template ref transform', () => {
3232 expect ( ir . template ) . toEqual ( [ '<div></div>' ] )
3333 expect ( ir . block . operation ) . lengthOf ( 1 )
3434 expect ( ir . block . operation [ 0 ] ) . toMatchObject ( {
35- type : IRNodeTypes . SET_REF ,
35+ type : IRNodeTypes . SET_TEMPLATE_REF ,
3636 element : 0 ,
3737 value : {
3838 content : 'foo' ,
@@ -58,7 +58,7 @@ describe('compiler: template ref transform', () => {
5858 expect ( ir . template ) . toEqual ( [ '<div></div>' ] )
5959 expect ( ir . block . operation ) . lengthOf ( 1 )
6060 expect ( ir . block . operation [ 0 ] ) . toMatchObject ( {
61- type : IRNodeTypes . SET_REF ,
61+ type : IRNodeTypes . SET_TEMPLATE_REF ,
6262 element : 0 ,
6363 value : {
6464 content : 'foo' ,
@@ -85,7 +85,7 @@ describe('compiler: template ref transform', () => {
8585
8686 expect ( positive . operation ) . lengthOf ( 1 )
8787 expect ( positive . operation [ 0 ] ) . toMatchObject ( {
88- type : IRNodeTypes . SET_REF ,
88+ type : IRNodeTypes . SET_TEMPLATE_REF ,
8989 element : 2 ,
9090 value : {
9191 content : 'foo' ,
@@ -109,7 +109,7 @@ describe('compiler: template ref transform', () => {
109109 const { render } = ir . block . operation [ 0 ] as ForIRNode
110110 expect ( render . operation ) . lengthOf ( 1 )
111111 expect ( render . operation [ 0 ] ) . toMatchObject ( {
112- type : IRNodeTypes . SET_REF ,
112+ type : IRNodeTypes . SET_TEMPLATE_REF ,
113113 element : 2 ,
114114 value : {
115115 content : 'foo' ,
0 commit comments