Populating document's children.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use std::marker::PhantomData;
|
||||
|
||||
use organic::types::Section;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
||||
use super::ast_node::WasmAstNode;
|
||||
use super::macros::to_wasm;
|
||||
use super::standard_properties::WasmStandardProperties;
|
||||
use super::to_wasm::ToWasm;
|
||||
@@ -11,7 +11,7 @@ use crate::wasm::to_wasm::ToWasmStandardProperties;
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
#[serde(tag = "ast_node")]
|
||||
#[serde(rename = "org-data")]
|
||||
#[serde(rename = "section")]
|
||||
pub(crate) struct WasmSection<'s> {
|
||||
standard_properties: WasmStandardProperties,
|
||||
children: Vec<()>,
|
||||
@@ -32,3 +32,9 @@ to_wasm!(
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
impl<'s> Into<WasmAstNode<'s>> for WasmSection<'s> {
|
||||
fn into(self) -> WasmAstNode<'s> {
|
||||
WasmAstNode::Section(self)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user