Remove phantom data.

This commit is contained in:
Tom Alexander 2023-12-27 12:04:54 -05:00
parent 1a70b3d2c0
commit 1812b1a56e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
57 changed files with 112 additions and 285 deletions

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::AngleLink; use crate::types::AngleLink;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmAngleLink<'s, 'p> { pub(crate) struct WasmAngleLink<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmAngleLink { Ok(WasmAngleLink {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::BabelCall; use crate::types::BabelCall;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmBabelCall<'s, 'p> { pub(crate) struct WasmBabelCall<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmBabelCall { Ok(WasmBabelCall {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Bold; use crate::types::Bold;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmBold<'s, 'p> { pub(crate) struct WasmBold<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmBold { Ok(WasmBold {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::CenterBlock; use crate::types::CenterBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmCenterBlock<'s, 'p> { pub(crate) struct WasmCenterBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmCenterBlock { Ok(WasmCenterBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Citation; use crate::types::Citation;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmCitation<'s, 'p> { pub(crate) struct WasmCitation<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmCitation { Ok(WasmCitation {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::CitationReference; use crate::types::CitationReference;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmCitationReference<'s, 'p> { pub(crate) struct WasmCitationReference<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmCitationReference { Ok(WasmCitationReference {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Clock; use crate::types::Clock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmClock<'s, 'p> { pub(crate) struct WasmClock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmClock { Ok(WasmClock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Code; use crate::types::Code;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmCode<'s, 'p> { pub(crate) struct WasmCode<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmCode { Ok(WasmCode {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Comment; use crate::types::Comment;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmComment<'s, 'p> { pub(crate) struct WasmComment<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmComment { Ok(WasmComment {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::CommentBlock; use crate::types::CommentBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmCommentBlock<'s, 'p> { pub(crate) struct WasmCommentBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmCommentBlock { Ok(WasmCommentBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::DiarySexp; use crate::types::DiarySexp;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmDiarySexp<'s, 'p> { pub(crate) struct WasmDiarySexp<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmDiarySexp { Ok(WasmDiarySexp {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Drawer; use crate::types::Drawer;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmDrawer<'s, 'p> { pub(crate) struct WasmDrawer<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmDrawer { Ok(WasmDrawer {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::DynamicBlock; use crate::types::DynamicBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmDynamicBlock<'s, 'p> { pub(crate) struct WasmDynamicBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmDynamicBlock { Ok(WasmDynamicBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Entity; use crate::types::Entity;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmEntity<'s, 'p> { pub(crate) struct WasmEntity<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmEntity { Ok(WasmEntity {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::ExampleBlock; use crate::types::ExampleBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmExampleBlock<'s, 'p> { pub(crate) struct WasmExampleBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmExampleBlock { Ok(WasmExampleBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::ExportBlock; use crate::types::ExportBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmExportBlock<'s, 'p> { pub(crate) struct WasmExportBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmExportBlock { Ok(WasmExportBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::ExportSnippet; use crate::types::ExportSnippet;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmExportSnippet<'s, 'p> { pub(crate) struct WasmExportSnippet<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmExportSnippet { Ok(WasmExportSnippet {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::FixedWidthArea; use crate::types::FixedWidthArea;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmFixedWidthArea<'s, 'p> { pub(crate) struct WasmFixedWidthArea<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmFixedWidthArea { Ok(WasmFixedWidthArea {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::FootnoteDefinition; use crate::types::FootnoteDefinition;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmFootnoteDefinition<'s, 'p> { pub(crate) struct WasmFootnoteDefinition<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmFootnoteDefinition { Ok(WasmFootnoteDefinition {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::FootnoteReference; use crate::types::FootnoteReference;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmFootnoteReference<'s, 'p> { pub(crate) struct WasmFootnoteReference<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmFootnoteReference { Ok(WasmFootnoteReference {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::ast_node::WasmAstNode; use super::ast_node::WasmAstNode;
@ -14,8 +12,7 @@ use crate::wasm::to_wasm::ToWasmStandardProperties;
#[serde(rename = "headline")] #[serde(rename = "headline")]
pub(crate) struct WasmHeadline<'s, 'p> { pub(crate) struct WasmHeadline<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -28,7 +25,6 @@ to_wasm!(
Ok(WasmHeadline { Ok(WasmHeadline {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::HorizontalRule; use crate::types::HorizontalRule;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmHorizontalRule<'s, 'p> { pub(crate) struct WasmHorizontalRule<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmHorizontalRule { Ok(WasmHorizontalRule {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::InlineBabelCall; use crate::types::InlineBabelCall;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmInlineBabelCall<'s, 'p> { pub(crate) struct WasmInlineBabelCall<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmInlineBabelCall { Ok(WasmInlineBabelCall {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::InlineSourceBlock; use crate::types::InlineSourceBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmInlineSourceBlock<'s, 'p> { pub(crate) struct WasmInlineSourceBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmInlineSourceBlock { Ok(WasmInlineSourceBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Italic; use crate::types::Italic;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmItalic<'s, 'p> { pub(crate) struct WasmItalic<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmItalic { Ok(WasmItalic {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Keyword; use crate::types::Keyword;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmKeyword<'s, 'p> { pub(crate) struct WasmKeyword<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmKeyword { Ok(WasmKeyword {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::LatexEnvironment; use crate::types::LatexEnvironment;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmLatexEnvironment<'s, 'p> { pub(crate) struct WasmLatexEnvironment<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmLatexEnvironment { Ok(WasmLatexEnvironment {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::LatexFragment; use crate::types::LatexFragment;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmLatexFragment<'s, 'p> { pub(crate) struct WasmLatexFragment<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmLatexFragment { Ok(WasmLatexFragment {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::LineBreak; use crate::types::LineBreak;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmLineBreak<'s, 'p> { pub(crate) struct WasmLineBreak<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmLineBreak { Ok(WasmLineBreak {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::NodeProperty; use crate::types::NodeProperty;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmNodeProperty<'s, 'p> { pub(crate) struct WasmNodeProperty<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmNodeProperty { Ok(WasmNodeProperty {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::OrgMacro; use crate::types::OrgMacro;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmOrgMacro<'s, 'p> { pub(crate) struct WasmOrgMacro<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmOrgMacro { Ok(WasmOrgMacro {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Paragraph; use crate::types::Paragraph;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmParagraph<'s, 'p> { pub(crate) struct WasmParagraph<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmParagraph { Ok(WasmParagraph {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::PlainLink; use crate::types::PlainLink;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmPlainLink<'s, 'p> { pub(crate) struct WasmPlainLink<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmPlainLink { Ok(WasmPlainLink {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::PlainList; use crate::types::PlainList;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmPlainList<'s, 'p> { pub(crate) struct WasmPlainList<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmPlainList { Ok(WasmPlainList {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::PlainListItem; use crate::types::PlainListItem;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmPlainListItem<'s, 'p> { pub(crate) struct WasmPlainListItem<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmPlainListItem { Ok(WasmPlainListItem {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::PlainText; use crate::types::PlainText;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmPlainText<'s, 'p> { pub(crate) struct WasmPlainText<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmPlainText { Ok(WasmPlainText {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Planning; use crate::types::Planning;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmPlanning<'s, 'p> { pub(crate) struct WasmPlanning<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmPlanning { Ok(WasmPlanning {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::PropertyDrawer; use crate::types::PropertyDrawer;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmPropertyDrawer<'s, 'p> { pub(crate) struct WasmPropertyDrawer<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmPropertyDrawer { Ok(WasmPropertyDrawer {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::QuoteBlock; use crate::types::QuoteBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmQuoteBlock<'s, 'p> { pub(crate) struct WasmQuoteBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmQuoteBlock { Ok(WasmQuoteBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::RadioLink; use crate::types::RadioLink;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmRadioLink<'s, 'p> { pub(crate) struct WasmRadioLink<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmRadioLink { Ok(WasmRadioLink {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::RadioTarget; use crate::types::RadioTarget;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmRadioTarget<'s, 'p> { pub(crate) struct WasmRadioTarget<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmRadioTarget { Ok(WasmRadioTarget {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::RegularLink; use crate::types::RegularLink;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmRegularLink<'s, 'p> { pub(crate) struct WasmRegularLink<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmRegularLink { Ok(WasmRegularLink {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::ast_node::WasmAstNode; use super::ast_node::WasmAstNode;
@ -14,8 +12,7 @@ use crate::wasm::to_wasm::ToWasmStandardProperties;
#[serde(rename = "section")] #[serde(rename = "section")]
pub(crate) struct WasmSection<'s, 'p> { pub(crate) struct WasmSection<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -28,7 +25,6 @@ to_wasm!(
Ok(WasmSection { Ok(WasmSection {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::SpecialBlock; use crate::types::SpecialBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmSpecialBlock<'s, 'p> { pub(crate) struct WasmSpecialBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmSpecialBlock { Ok(WasmSpecialBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::SrcBlock; use crate::types::SrcBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmSrcBlock<'s, 'p> { pub(crate) struct WasmSrcBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmSrcBlock { Ok(WasmSrcBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::StatisticsCookie; use crate::types::StatisticsCookie;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmStatisticsCookie<'s, 'p> { pub(crate) struct WasmStatisticsCookie<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmStatisticsCookie { Ok(WasmStatisticsCookie {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::StrikeThrough; use crate::types::StrikeThrough;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmStrikeThrough<'s, 'p> { pub(crate) struct WasmStrikeThrough<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmStrikeThrough { Ok(WasmStrikeThrough {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Subscript; use crate::types::Subscript;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmSubscript<'s, 'p> { pub(crate) struct WasmSubscript<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmSubscript { Ok(WasmSubscript {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Superscript; use crate::types::Superscript;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmSuperscript<'s, 'p> { pub(crate) struct WasmSuperscript<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmSuperscript { Ok(WasmSuperscript {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Table; use crate::types::Table;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmTable<'s, 'p> { pub(crate) struct WasmTable<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmTable { Ok(WasmTable {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::TableCell; use crate::types::TableCell;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmTableCell<'s, 'p> { pub(crate) struct WasmTableCell<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmTableCell { Ok(WasmTableCell {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::TableRow; use crate::types::TableRow;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmTableRow<'s, 'p> { pub(crate) struct WasmTableRow<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmTableRow { Ok(WasmTableRow {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Target; use crate::types::Target;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmTarget<'s, 'p> { pub(crate) struct WasmTarget<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmTarget { Ok(WasmTarget {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Timestamp; use crate::types::Timestamp;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmTimestamp<'s, 'p> { pub(crate) struct WasmTimestamp<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmTimestamp { Ok(WasmTimestamp {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Underline; use crate::types::Underline;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmUnderline<'s, 'p> { pub(crate) struct WasmUnderline<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmUnderline { Ok(WasmUnderline {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::Verbatim; use crate::types::Verbatim;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmVerbatim<'s, 'p> { pub(crate) struct WasmVerbatim<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmVerbatim { Ok(WasmVerbatim {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );

View File

@ -1,5 +1,3 @@
use std::marker::PhantomData;
use serde::Serialize; use serde::Serialize;
use super::macros::to_wasm; use super::macros::to_wasm;
@ -7,14 +5,14 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm; use super::to_wasm::ToWasm;
use crate::types::VerseBlock; use crate::types::VerseBlock;
use crate::wasm::to_wasm::ToWasmStandardProperties; use crate::wasm::to_wasm::ToWasmStandardProperties;
use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
#[serde(tag = "ast_node")] #[serde(tag = "ast_node")]
#[serde(rename = "org-data")] #[serde(rename = "org-data")]
pub(crate) struct WasmVerseBlock<'s, 'p> { pub(crate) struct WasmVerseBlock<'s, 'p> {
standard_properties: WasmStandardProperties, standard_properties: WasmStandardProperties,
children: Vec<()>, children: Vec<WasmAstNode<'s, 'p>>,
phantom: PhantomData<&'s ()>,
} }
to_wasm!( to_wasm!(
@ -27,7 +25,6 @@ to_wasm!(
Ok(WasmVerseBlock { Ok(WasmVerseBlock {
standard_properties, standard_properties,
children: Vec::new(), children: Vec::new(),
phantom: PhantomData,
}) })
} }
); );