File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ function mt:_compileBlock(block)
156156 tag = ' out' ,
157157 copy = true ,
158158 pos = block .start ,
159- order = 1 ,
160159 }
161160 self .steps [# self .steps + 1 ] = outStep
162161 local blockStep = {
@@ -165,7 +164,6 @@ function mt:_compileBlock(block)
165164 copy = true ,
166165 ref = outStep ,
167166 pos = childBlock .start ,
168- order = 2 ,
169167 }
170168 self .steps [# self .steps + 1 ] = blockStep
171169 self :_compileNarrowByFilter (childBlock .filter , outStep , blockStep )
@@ -177,15 +175,13 @@ function mt:_compileBlock(block)
177175 tag = ' final' ,
178176 ref1 = outStep ,
179177 pos = childBlock .finish ,
180- order = 1 ,
181178 }
182179 end
183180 for i , final in ipairs (finals ) do
184181 self .steps [# self .steps + 1 ] = {
185182 type = ' merge' ,
186183 ref2 = final ,
187184 pos = block .finish ,
188- order = i ,
189185 }
190186 end
191187 end
@@ -194,13 +190,11 @@ function mt:_compileBlock(block)
194190 self .steps [# self .steps + 1 ] = {
195191 type = ' load' ,
196192 pos = block .start ,
197- order = 1 ,
198193 }
199194 local savePoint = {
200195 type = ' save' ,
201196 copy = true ,
202197 pos = block .start ,
203- order = 2 ,
204198 }
205199 self .steps [# self .steps + 1 ] = savePoint
206200 self .steps [# self .steps + 1 ] = {
@@ -221,6 +215,11 @@ function mt:_preCompile()
221215 local block = guide .getParentBlock (ref )
222216 self :_compileBlock (block )
223217 end
218+ for i , step in ipairs (self .steps ) do
219+ if step .type ~= ' object' then
220+ step .order = i
221+ end
222+ end
224223 table.sort (self .steps , function (a , b )
225224 if a .pos == b .pos then
226225 return (a .order or 0 ) < (b .order or 0 )
You can’t perform that action at this time.
0 commit comments