Commit a4770e83 authored by Arthur Bit-Monnot's avatar Arthur Bit-Monnot

Fix: context was not updated when translating action to core model.

parent c0a482d4
......@@ -85,9 +85,10 @@ object FullToCore {
}
private def f2c(act: full.ActionTemplate)(implicit ctx: Context): core.ActionTemplate = {
implicit val actionContext: Context = ctx.copy(scope = act.scope)
val statements = act.store.blocks.flatMap {
case x: core.Statement => Seq(x)
case x: full.Statement => f2c(x).statements
case x: full.Statement => f2c(x)(actionContext).statements
}
core.ActionTemplate(act.scope, statements)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment