@@ -185,45 +185,45 @@ transform_instruction(Instruction &instruction, Instructions &output,
185185 if (child.type == InstructionIndex::AssertionTypeStrict) {
186186 output.push_back (
187187 Instruction{.type = InstructionIndex::LoopPropertiesTypeStrict,
188+ .relative_instance_location =
189+ std::move (instruction.relative_instance_location ),
190+ .value = std::move (child.value ),
191+ .children = {},
188192 .relative_schema_location =
189193 instruction.relative_schema_location .concat (
190194 child.relative_schema_location ),
191- .relative_instance_location =
192- std::move (instruction.relative_instance_location ),
193195 .keyword_location = std::move (child.keyword_location ),
194- .schema_resource = child.schema_resource ,
195- .value = std::move (child.value ),
196- .children = {}});
196+ .schema_resource = child.schema_resource });
197197 return true ;
198198 }
199199
200200 if (child.type == InstructionIndex::AssertionType) {
201201 output.push_back (
202202 Instruction{.type = InstructionIndex::LoopPropertiesType,
203+ .relative_instance_location =
204+ std::move (instruction.relative_instance_location ),
205+ .value = std::move (child.value ),
206+ .children = {},
203207 .relative_schema_location =
204208 instruction.relative_schema_location .concat (
205209 child.relative_schema_location ),
206- .relative_instance_location =
207- std::move (instruction.relative_instance_location ),
208210 .keyword_location = std::move (child.keyword_location ),
209- .schema_resource = child.schema_resource ,
210- .value = std::move (child.value ),
211- .children = {}});
211+ .schema_resource = child.schema_resource });
212212 return true ;
213213 }
214214
215215 if (child.type == InstructionIndex::AssertionTypeStrictAny) {
216216 output.push_back (
217217 Instruction{.type = InstructionIndex::LoopPropertiesTypeStrictAny,
218+ .relative_instance_location =
219+ std::move (instruction.relative_instance_location ),
220+ .value = std::move (child.value ),
221+ .children = {},
218222 .relative_schema_location =
219223 instruction.relative_schema_location .concat (
220224 child.relative_schema_location ),
221- .relative_instance_location =
222- std::move (instruction.relative_instance_location ),
223225 .keyword_location = std::move (child.keyword_location ),
224- .schema_resource = child.schema_resource ,
225- .value = std::move (child.value ),
226- .children = {}});
226+ .schema_resource = child.schema_resource });
227227 return true ;
228228 }
229229 }
@@ -234,45 +234,45 @@ transform_instruction(Instruction &instruction, Instructions &output,
234234 if (child.type == InstructionIndex::AssertionTypeStrict) {
235235 output.push_back (Instruction{
236236 .type = InstructionIndex::LoopPropertiesTypeStrictEvaluate,
237+ .relative_instance_location =
238+ std::move (instruction.relative_instance_location ),
239+ .value = std::move (child.value ),
240+ .children = {},
237241 .relative_schema_location =
238242 instruction.relative_schema_location .concat (
239243 child.relative_schema_location ),
240- .relative_instance_location =
241- std::move (instruction.relative_instance_location ),
242244 .keyword_location = std::move (child.keyword_location ),
243- .schema_resource = child.schema_resource ,
244- .value = std::move (child.value ),
245- .children = {}});
245+ .schema_resource = child.schema_resource });
246246 return true ;
247247 }
248248
249249 if (child.type == InstructionIndex::AssertionType) {
250250 output.push_back (
251251 Instruction{.type = InstructionIndex::LoopPropertiesTypeEvaluate,
252+ .relative_instance_location =
253+ std::move (instruction.relative_instance_location ),
254+ .value = std::move (child.value ),
255+ .children = {},
252256 .relative_schema_location =
253257 instruction.relative_schema_location .concat (
254258 child.relative_schema_location ),
255- .relative_instance_location =
256- std::move (instruction.relative_instance_location ),
257259 .keyword_location = std::move (child.keyword_location ),
258- .schema_resource = child.schema_resource ,
259- .value = std::move (child.value ),
260- .children = {}});
260+ .schema_resource = child.schema_resource });
261261 return true ;
262262 }
263263
264264 if (child.type == InstructionIndex::AssertionTypeStrictAny) {
265265 output.push_back (Instruction{
266266 .type = InstructionIndex::LoopPropertiesTypeStrictAnyEvaluate,
267+ .relative_instance_location =
268+ std::move (instruction.relative_instance_location ),
269+ .value = std::move (child.value ),
270+ .children = {},
267271 .relative_schema_location =
268272 instruction.relative_schema_location .concat (
269273 child.relative_schema_location ),
270- .relative_instance_location =
271- std::move (instruction.relative_instance_location ),
272274 .keyword_location = std::move (child.keyword_location ),
273- .schema_resource = child.schema_resource ,
274- .value = std::move (child.value ),
275- .children = {}});
275+ .schema_resource = child.schema_resource });
276276 return true ;
277277 }
278278 }
0 commit comments