Add a generic WasmAstNode enum.

This commit is contained in:
Tom Alexander
2023-12-25 11:51:39 -05:00
parent 13863a68f7
commit dc012b49f5
60 changed files with 425 additions and 305 deletions

View File

@@ -4,6 +4,7 @@ use organic::types::Document;
use serde::Deserialize;
use serde::Serialize;
use super::ast_node::WasmAstNode;
use super::macros::to_wasm;
use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm;
@@ -31,3 +32,9 @@ to_wasm!(
})
}
);
impl<'s> Into<WasmAstNode<'s>> for WasmDocument<'s> {
fn into(self) -> WasmAstNode<'s> {
WasmAstNode::Document(self)
}
}