From 03c8c07fe0f509da313f3f72567a114aa11c0328 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 30 Dec 2023 20:53:20 -0500 Subject: [PATCH] Implement quote block. --- src/wasm/quote_block.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wasm/quote_block.rs b/src/wasm/quote_block.rs index 39a9071..7dbad05 100644 --- a/src/wasm/quote_block.rs +++ b/src/wasm/quote_block.rs @@ -6,6 +6,7 @@ use super::macros::to_wasm; use super::to_wasm::ToWasm; use super::AdditionalProperties; use crate::compare::ElispFact; +use crate::types::GetAffiliatedKeywords; use crate::types::QuoteBlock; use crate::wasm::to_wasm::ToWasmStandardProperties; @@ -21,8 +22,12 @@ to_wasm!( original, wasm_context, { WasmAstNode::QuoteBlock(original) }, - { "TODO".into() }, + { "quote-block".into() }, { + let additional_properties = original + .get_affiliated_keywords() + .to_wasm(wasm_context.clone())?; + let children = original .children .iter() @@ -36,7 +41,7 @@ to_wasm!( Ok(( children, WasmQuoteBlock { - additional_properties: AdditionalProperties::default(), + additional_properties, }, )) }