Implement property drawer.

This commit is contained in:
Tom Alexander 2023-12-30 18:59:52 -05:00
parent 7f3f5fb889
commit c2b3509b6a
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -4,16 +4,12 @@ use serde::Serialize;
use super::ast_node::WasmAstNode;
use super::macros::to_wasm;
use super::to_wasm::ToWasm;
use super::AdditionalProperties;
use crate::compare::ElispFact;
use crate::types::PropertyDrawer;
use crate::wasm::to_wasm::ToWasmStandardProperties;
#[derive(Debug, Serialize, Deserialize)]
pub struct WasmPropertyDrawer {
#[serde(flatten)]
pub(crate) additional_properties: AdditionalProperties,
}
pub struct WasmPropertyDrawer {}
to_wasm!(
WasmPropertyDrawer,
@ -21,7 +17,7 @@ to_wasm!(
original,
wasm_context,
{ WasmAstNode::PropertyDrawer(original) },
{ "TODO".into() },
{ "property-drawer".into() },
{
let children = original
.children
@ -33,11 +29,6 @@ to_wasm!(
})
.collect::<Result<Vec<_>, _>>()?;
Ok((
children,
WasmPropertyDrawer {
additional_properties: AdditionalProperties::default(),
},
))
Ok((children, WasmPropertyDrawer {}))
}
);