Implement target.

This commit is contained in:
Tom Alexander 2023-12-30 12:22:23 -05:00
parent 44392cfcca
commit f2292f1c07
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -4,15 +4,13 @@ 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::Target;
use crate::wasm::to_wasm::ToWasmStandardProperties;
#[derive(Debug, Serialize, Deserialize)]
pub struct WasmTarget {
#[serde(flatten)]
pub(crate) additional_properties: AdditionalProperties,
pub(crate) value: String,
}
to_wasm!(
@ -21,12 +19,12 @@ to_wasm!(
original,
wasm_context,
{ WasmAstNode::Target(original) },
{ "TODO".into() },
{ "target".into() },
{
Ok((
Vec::new(),
WasmTarget {
additional_properties: AdditionalProperties::default(),
value: original.value.to_owned(),
},
))
}