Implement table cell.
Some checks failed
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed

This commit is contained in:
Tom Alexander 2023-12-30 18:31:35 -05:00
parent e0fbf17226
commit 7f3f5fb889
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::TableCell;
use crate::wasm::to_wasm::ToWasmStandardProperties;
#[derive(Debug, Serialize, Deserialize)]
pub struct WasmTableCell {
#[serde(flatten)]
pub(crate) additional_properties: AdditionalProperties,
}
pub struct WasmTableCell {}
to_wasm!(
WasmTableCell,
@ -21,7 +17,7 @@ to_wasm!(
original,
wasm_context,
{ WasmAstNode::TableCell(original) },
{ "TODO".into() },
{ "table-cell".into() },
{
let children = original
.children
@ -33,11 +29,6 @@ to_wasm!(
})
.collect::<Result<Vec<_>, _>>()?;
Ok((
children,
WasmTableCell {
additional_properties: AdditionalProperties::default(),
},
))
Ok((children, WasmTableCell {}))
}
);