Fix timeline tracking for parallel blocks #344
|
@ -215,12 +215,7 @@ impl<'b> CodeGenerator for ArtiqCodeGenerator<'b> {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
} else if id == &"sequential".into() {
|
} else if id == &"sequential".into() {
|
||||||
let start = self.start.take();
|
let start = self.start.take();
|
||||||
for stmt in body.iter() {
|
gen_block(self, ctx, body.iter())?;
|
||||||
self.gen_stmt(ctx, stmt)?;
|
|
||||||
if ctx.is_terminated() {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
self.start = start;
|
self.start = start;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue