Add conversion to WasmAstNode for wasm Objects.

This commit is contained in:
Tom Alexander
2023-12-27 19:53:07 -05:00
parent 7626a69fa1
commit 28ad4fd046
29 changed files with 235 additions and 1 deletions

View File

@@ -22,9 +22,19 @@ to_wasm!(
wasm_context,
standard_properties,
{
let children = original
.children
.iter()
.map(|child| {
child
.to_wasm(wasm_context.clone())
.map(Into::<WasmAstNode<'_, '_>>::into)
})
.collect::<Result<Vec<_>, _>>()?;
Ok(WasmParagraph {
standard_properties,
children: Vec::new(),
children,
})
}
);