Wrap the intermediate Registry in an IntermediateContext.

This is currently just to maintain consistency with the render phase's RenderContext but in the future it should allow us to include immutable data that is not locked behind the ArcMutex.
This commit is contained in:
Tom Alexander
2023-12-21 13:53:56 -05:00
parent 2ae4839ce0
commit 8b85c02ef1
34 changed files with 266 additions and 229 deletions

View File

@@ -12,12 +12,12 @@ intermediate!(
IItalic,
&'orig organic::types::Italic<'parse>,
original,
registry,
intermediate_context,
{
let children = {
let mut ret = Vec::new();
for obj in original.children.iter() {
ret.push(IObject::new(registry.clone(), obj).await?);
ret.push(IObject::new(intermediate_context.clone(), obj).await?);
}
ret
};