From 13863a68f7e0187ebeefcae5cd6f0e5165004052 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 25 Dec 2023 11:33:43 -0500 Subject: [PATCH] Add placeholders for all the wasm ast nodes. --- src/wasm/angle_link.rs | 33 +++++++++++++++++++ src/wasm/babel_call.rs | 33 +++++++++++++++++++ src/wasm/bold.rs | 33 +++++++++++++++++++ src/wasm/center_block.rs | 33 +++++++++++++++++++ src/wasm/citation.rs | 33 +++++++++++++++++++ src/wasm/citation_reference.rs | 33 +++++++++++++++++++ src/wasm/clock.rs | 33 +++++++++++++++++++ src/wasm/code.rs | 33 +++++++++++++++++++ src/wasm/comment.rs | 33 +++++++++++++++++++ src/wasm/comment_block.rs | 33 +++++++++++++++++++ src/wasm/diary_sexp.rs | 33 +++++++++++++++++++ src/wasm/drawer.rs | 33 +++++++++++++++++++ src/wasm/dynamic_block.rs | 33 +++++++++++++++++++ src/wasm/entity.rs | 33 +++++++++++++++++++ src/wasm/example_block.rs | 33 +++++++++++++++++++ src/wasm/export_block.rs | 33 +++++++++++++++++++ src/wasm/export_snippet.rs | 33 +++++++++++++++++++ src/wasm/fixed_width_area.rs | 33 +++++++++++++++++++ src/wasm/footnote_definition.rs | 33 +++++++++++++++++++ src/wasm/footnote_reference.rs | 33 +++++++++++++++++++ src/wasm/headline.rs | 33 +++++++++++++++++++ src/wasm/horizontal_rule.rs | 33 +++++++++++++++++++ src/wasm/inline_babel_call.rs | 33 +++++++++++++++++++ src/wasm/inline_source_block.rs | 33 +++++++++++++++++++ src/wasm/italic.rs | 33 +++++++++++++++++++ src/wasm/keyword.rs | 33 +++++++++++++++++++ src/wasm/latex_environment.rs | 33 +++++++++++++++++++ src/wasm/latex_fragment.rs | 33 +++++++++++++++++++ src/wasm/line_break.rs | 33 +++++++++++++++++++ src/wasm/mod.rs | 57 +++++++++++++++++++++++++++++++++ src/wasm/node_property.rs | 33 +++++++++++++++++++ src/wasm/org_macro.rs | 33 +++++++++++++++++++ src/wasm/paragraph.rs | 33 +++++++++++++++++++ src/wasm/plain_link.rs | 33 +++++++++++++++++++ src/wasm/plain_list.rs | 33 +++++++++++++++++++ src/wasm/plain_list_item.rs | 33 +++++++++++++++++++ src/wasm/plain_text.rs | 33 +++++++++++++++++++ src/wasm/planning.rs | 33 +++++++++++++++++++ src/wasm/property_drawer.rs | 33 +++++++++++++++++++ src/wasm/quote_block.rs | 33 +++++++++++++++++++ src/wasm/radio_link.rs | 33 +++++++++++++++++++ src/wasm/radio_target.rs | 33 +++++++++++++++++++ src/wasm/regular_link.rs | 33 +++++++++++++++++++ src/wasm/section.rs | 33 +++++++++++++++++++ src/wasm/special_block.rs | 33 +++++++++++++++++++ src/wasm/src_block.rs | 33 +++++++++++++++++++ src/wasm/statistics_cookie.rs | 33 +++++++++++++++++++ src/wasm/strike_through.rs | 33 +++++++++++++++++++ src/wasm/subscript.rs | 33 +++++++++++++++++++ src/wasm/superscript.rs | 33 +++++++++++++++++++ src/wasm/table.rs | 33 +++++++++++++++++++ src/wasm/table_cell.rs | 33 +++++++++++++++++++ src/wasm/table_row.rs | 33 +++++++++++++++++++ src/wasm/target.rs | 33 +++++++++++++++++++ src/wasm/timestamp.rs | 33 +++++++++++++++++++ src/wasm/underline.rs | 33 +++++++++++++++++++ src/wasm/verbatim.rs | 33 +++++++++++++++++++ src/wasm/verse_block.rs | 33 +++++++++++++++++++ 58 files changed, 1938 insertions(+) create mode 100644 src/wasm/angle_link.rs create mode 100644 src/wasm/babel_call.rs create mode 100644 src/wasm/bold.rs create mode 100644 src/wasm/center_block.rs create mode 100644 src/wasm/citation.rs create mode 100644 src/wasm/citation_reference.rs create mode 100644 src/wasm/clock.rs create mode 100644 src/wasm/code.rs create mode 100644 src/wasm/comment.rs create mode 100644 src/wasm/comment_block.rs create mode 100644 src/wasm/diary_sexp.rs create mode 100644 src/wasm/drawer.rs create mode 100644 src/wasm/dynamic_block.rs create mode 100644 src/wasm/entity.rs create mode 100644 src/wasm/example_block.rs create mode 100644 src/wasm/export_block.rs create mode 100644 src/wasm/export_snippet.rs create mode 100644 src/wasm/fixed_width_area.rs create mode 100644 src/wasm/footnote_definition.rs create mode 100644 src/wasm/footnote_reference.rs create mode 100644 src/wasm/headline.rs create mode 100644 src/wasm/horizontal_rule.rs create mode 100644 src/wasm/inline_babel_call.rs create mode 100644 src/wasm/inline_source_block.rs create mode 100644 src/wasm/italic.rs create mode 100644 src/wasm/keyword.rs create mode 100644 src/wasm/latex_environment.rs create mode 100644 src/wasm/latex_fragment.rs create mode 100644 src/wasm/line_break.rs create mode 100644 src/wasm/node_property.rs create mode 100644 src/wasm/org_macro.rs create mode 100644 src/wasm/paragraph.rs create mode 100644 src/wasm/plain_link.rs create mode 100644 src/wasm/plain_list.rs create mode 100644 src/wasm/plain_list_item.rs create mode 100644 src/wasm/plain_text.rs create mode 100644 src/wasm/planning.rs create mode 100644 src/wasm/property_drawer.rs create mode 100644 src/wasm/quote_block.rs create mode 100644 src/wasm/radio_link.rs create mode 100644 src/wasm/radio_target.rs create mode 100644 src/wasm/regular_link.rs create mode 100644 src/wasm/section.rs create mode 100644 src/wasm/special_block.rs create mode 100644 src/wasm/src_block.rs create mode 100644 src/wasm/statistics_cookie.rs create mode 100644 src/wasm/strike_through.rs create mode 100644 src/wasm/subscript.rs create mode 100644 src/wasm/superscript.rs create mode 100644 src/wasm/table.rs create mode 100644 src/wasm/table_cell.rs create mode 100644 src/wasm/table_row.rs create mode 100644 src/wasm/target.rs create mode 100644 src/wasm/timestamp.rs create mode 100644 src/wasm/underline.rs create mode 100644 src/wasm/verbatim.rs create mode 100644 src/wasm/verse_block.rs diff --git a/src/wasm/angle_link.rs b/src/wasm/angle_link.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/angle_link.rs @@ -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, + }) + } +); diff --git a/src/wasm/babel_call.rs b/src/wasm/babel_call.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/babel_call.rs @@ -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, + }) + } +); diff --git a/src/wasm/bold.rs b/src/wasm/bold.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/bold.rs @@ -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, + }) + } +); diff --git a/src/wasm/center_block.rs b/src/wasm/center_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/center_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/citation.rs b/src/wasm/citation.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/citation.rs @@ -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, + }) + } +); diff --git a/src/wasm/citation_reference.rs b/src/wasm/citation_reference.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/citation_reference.rs @@ -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, + }) + } +); diff --git a/src/wasm/clock.rs b/src/wasm/clock.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/clock.rs @@ -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, + }) + } +); diff --git a/src/wasm/code.rs b/src/wasm/code.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/code.rs @@ -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, + }) + } +); diff --git a/src/wasm/comment.rs b/src/wasm/comment.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/comment.rs @@ -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, + }) + } +); diff --git a/src/wasm/comment_block.rs b/src/wasm/comment_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/comment_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/diary_sexp.rs b/src/wasm/diary_sexp.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/diary_sexp.rs @@ -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, + }) + } +); diff --git a/src/wasm/drawer.rs b/src/wasm/drawer.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/drawer.rs @@ -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, + }) + } +); diff --git a/src/wasm/dynamic_block.rs b/src/wasm/dynamic_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/dynamic_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/entity.rs b/src/wasm/entity.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/entity.rs @@ -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, + }) + } +); diff --git a/src/wasm/example_block.rs b/src/wasm/example_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/example_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/export_block.rs b/src/wasm/export_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/export_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/export_snippet.rs b/src/wasm/export_snippet.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/export_snippet.rs @@ -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, + }) + } +); diff --git a/src/wasm/fixed_width_area.rs b/src/wasm/fixed_width_area.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/fixed_width_area.rs @@ -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, + }) + } +); diff --git a/src/wasm/footnote_definition.rs b/src/wasm/footnote_definition.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/footnote_definition.rs @@ -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, + }) + } +); diff --git a/src/wasm/footnote_reference.rs b/src/wasm/footnote_reference.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/footnote_reference.rs @@ -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, + }) + } +); diff --git a/src/wasm/headline.rs b/src/wasm/headline.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/headline.rs @@ -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, + }) + } +); diff --git a/src/wasm/horizontal_rule.rs b/src/wasm/horizontal_rule.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/horizontal_rule.rs @@ -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, + }) + } +); diff --git a/src/wasm/inline_babel_call.rs b/src/wasm/inline_babel_call.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/inline_babel_call.rs @@ -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, + }) + } +); diff --git a/src/wasm/inline_source_block.rs b/src/wasm/inline_source_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/inline_source_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/italic.rs b/src/wasm/italic.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/italic.rs @@ -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, + }) + } +); diff --git a/src/wasm/keyword.rs b/src/wasm/keyword.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/keyword.rs @@ -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, + }) + } +); diff --git a/src/wasm/latex_environment.rs b/src/wasm/latex_environment.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/latex_environment.rs @@ -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, + }) + } +); diff --git a/src/wasm/latex_fragment.rs b/src/wasm/latex_fragment.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/latex_fragment.rs @@ -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, + }) + } +); diff --git a/src/wasm/line_break.rs b/src/wasm/line_break.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/line_break.rs @@ -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, + }) + } +); diff --git a/src/wasm/mod.rs b/src/wasm/mod.rs index d0e568f..876d563 100644 --- a/src/wasm/mod.rs +++ b/src/wasm/mod.rs @@ -1,8 +1,65 @@ +mod angle_link; +mod babel_call; +mod bold; +mod center_block; +mod citation; +mod citation_reference; +mod clock; +mod code; +mod comment; +mod comment_block; +mod diary_sexp; mod document; +mod drawer; +mod dynamic_block; +mod entity; +mod example_block; +mod export_block; +mod export_snippet; +mod fixed_width_area; +mod footnote_definition; +mod footnote_reference; +mod headline; +mod horizontal_rule; +mod inline_babel_call; +mod inline_source_block; +mod italic; +mod keyword; +mod latex_environment; +mod latex_fragment; +mod line_break; mod macros; +mod node_property; +mod org_macro; +mod paragraph; mod parse_result; +mod plain_link; +mod plain_list; +mod plain_list_item; +mod plain_text; +mod planning; +mod property_drawer; +mod quote_block; +mod radio_link; +mod radio_target; +mod regular_link; +mod section; +mod special_block; +mod src_block; mod standard_properties; +mod statistics_cookie; +mod strike_through; +mod subscript; +mod superscript; +mod table; +mod table_cell; +mod table_row; +mod target; +mod timestamp; mod to_wasm; +mod underline; +mod verbatim; +mod verse_block; pub(crate) use parse_result::ParseResult; pub(crate) use to_wasm::ToWasm; diff --git a/src/wasm/node_property.rs b/src/wasm/node_property.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/node_property.rs @@ -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, + }) + } +); diff --git a/src/wasm/org_macro.rs b/src/wasm/org_macro.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/org_macro.rs @@ -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, + }) + } +); diff --git a/src/wasm/paragraph.rs b/src/wasm/paragraph.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/paragraph.rs @@ -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, + }) + } +); diff --git a/src/wasm/plain_link.rs b/src/wasm/plain_link.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/plain_link.rs @@ -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, + }) + } +); diff --git a/src/wasm/plain_list.rs b/src/wasm/plain_list.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/plain_list.rs @@ -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, + }) + } +); diff --git a/src/wasm/plain_list_item.rs b/src/wasm/plain_list_item.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/plain_list_item.rs @@ -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, + }) + } +); diff --git a/src/wasm/plain_text.rs b/src/wasm/plain_text.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/plain_text.rs @@ -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, + }) + } +); diff --git a/src/wasm/planning.rs b/src/wasm/planning.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/planning.rs @@ -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, + }) + } +); diff --git a/src/wasm/property_drawer.rs b/src/wasm/property_drawer.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/property_drawer.rs @@ -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, + }) + } +); diff --git a/src/wasm/quote_block.rs b/src/wasm/quote_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/quote_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/radio_link.rs b/src/wasm/radio_link.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/radio_link.rs @@ -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, + }) + } +); diff --git a/src/wasm/radio_target.rs b/src/wasm/radio_target.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/radio_target.rs @@ -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, + }) + } +); diff --git a/src/wasm/regular_link.rs b/src/wasm/regular_link.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/regular_link.rs @@ -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, + }) + } +); diff --git a/src/wasm/section.rs b/src/wasm/section.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/section.rs @@ -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, + }) + } +); diff --git a/src/wasm/special_block.rs b/src/wasm/special_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/special_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/src_block.rs b/src/wasm/src_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/src_block.rs @@ -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, + }) + } +); diff --git a/src/wasm/statistics_cookie.rs b/src/wasm/statistics_cookie.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/statistics_cookie.rs @@ -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, + }) + } +); diff --git a/src/wasm/strike_through.rs b/src/wasm/strike_through.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/strike_through.rs @@ -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, + }) + } +); diff --git a/src/wasm/subscript.rs b/src/wasm/subscript.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/subscript.rs @@ -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, + }) + } +); diff --git a/src/wasm/superscript.rs b/src/wasm/superscript.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/superscript.rs @@ -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, + }) + } +); diff --git a/src/wasm/table.rs b/src/wasm/table.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/table.rs @@ -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, + }) + } +); diff --git a/src/wasm/table_cell.rs b/src/wasm/table_cell.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/table_cell.rs @@ -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, + }) + } +); diff --git a/src/wasm/table_row.rs b/src/wasm/table_row.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/table_row.rs @@ -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, + }) + } +); diff --git a/src/wasm/target.rs b/src/wasm/target.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/target.rs @@ -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, + }) + } +); diff --git a/src/wasm/timestamp.rs b/src/wasm/timestamp.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/timestamp.rs @@ -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, + }) + } +); diff --git a/src/wasm/underline.rs b/src/wasm/underline.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/underline.rs @@ -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, + }) + } +); diff --git a/src/wasm/verbatim.rs b/src/wasm/verbatim.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/verbatim.rs @@ -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, + }) + } +); diff --git a/src/wasm/verse_block.rs b/src/wasm/verse_block.rs new file mode 100644 index 0000000..bbb749e --- /dev/null +++ b/src/wasm/verse_block.rs @@ -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, + }) + } +);