Add placeholders for all the wasm ast nodes.

This commit is contained in:
Tom Alexander
2023-12-25 11:33:43 -05:00
parent 2962f76c81
commit 13863a68f7
58 changed files with 1938 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
use std::marker::PhantomData;
use organic::types::Document;
use serde::Deserialize;
use serde::Serialize;
use super::macros::to_wasm;
use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm;
use crate::wasm::to_wasm::ToWasmStandardProperties;
#[derive(Serialize, Deserialize)]
#[serde(tag = "ast_node")]
#[serde(rename = "org-data")]
pub(crate) struct WasmDocument<'s> {
standard_properties: WasmStandardProperties,
children: Vec<()>,
phantom: PhantomData<&'s ()>,
}
to_wasm!(
WasmDocument<'s>,
Document<'s>,
wasm_context,
standard_properties,
{
Ok(WasmDocument {
standard_properties,
children: Vec::new(),
phantom: PhantomData,
})
}
);