diff --git a/src/wasm/inline_source_block.rs b/src/wasm/inline_source_block.rs index b560ceb..9b2cf80 100644 --- a/src/wasm/inline_source_block.rs +++ b/src/wasm/inline_source_block.rs @@ -4,15 +4,15 @@ 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::InlineSourceBlock; use crate::wasm::to_wasm::ToWasmStandardProperties; #[derive(Debug, Serialize, Deserialize)] pub struct WasmInlineSourceBlock { - #[serde(flatten)] - pub(crate) additional_properties: AdditionalProperties, + pub(crate) language: String, + pub(crate) value: String, + pub(crate) parameters: Option, } to_wasm!( @@ -21,12 +21,14 @@ to_wasm!( original, wasm_context, { WasmAstNode::InlineSourceBlock(original) }, - { "TODO".into() }, + { "inline-src-block".into() }, { Ok(( Vec::new(), WasmInlineSourceBlock { - additional_properties: AdditionalProperties::default(), + language: original.language.to_owned(), + value: original.value.to_owned(), + parameters: original.parameters.map(str::to_owned), }, )) }