File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -85,21 +85,21 @@ export class TransformContext<
85
85
root : TransformContext < RootNode >
86
86
index : number = 0
87
87
88
- block : BlockIRNode = this . ir . block
88
+ block : BlockIRNode
89
89
options : Required <
90
90
Omit < TransformOptions , 'filename' | keyof CompilerCompatOptions >
91
91
>
92
92
93
93
template : string = ''
94
94
childrenTemplate : ( string | null ) [ ] = [ ]
95
- dynamic : IRDynamicInfo = this . ir . block . dynamic
95
+ dynamic : IRDynamicInfo
96
96
97
97
inVOnce : boolean = false
98
98
inVFor : number = 0
99
99
100
100
comment : CommentNode [ ] = [ ]
101
- component : Set < string > = this . ir . component
102
- directive : Set < string > = this . ir . directive
101
+ component : Set < string >
102
+ directive : Set < string >
103
103
104
104
slots : IRSlots [ ] = [ ]
105
105
@@ -111,6 +111,10 @@ export class TransformContext<
111
111
options : TransformOptions = { } ,
112
112
) {
113
113
this . options = extend ( { } , defaultOptions , options )
114
+ this . block = this . ir . block
115
+ this . dynamic = this . ir . block . dynamic
116
+ this . component = this . ir . component
117
+ this . directive = this . ir . directive
114
118
this . root = this as TransformContext < RootNode >
115
119
}
116
120
You can’t perform that action at this time.
0 commit comments