23 lines
518 B
Rust
23 lines
518 B
Rust
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
|
|
use super::ast_node::WasmAstNode;
|
|
use super::macros::to_wasm;
|
|
use super::to_wasm::ToWasm;
|
|
use crate::compare::ElispFact;
|
|
use crate::types::PlainText;
|
|
use crate::wasm::to_wasm::ToWasmStandardProperties;
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct WasmPlainText {}
|
|
|
|
to_wasm!(
|
|
WasmPlainText,
|
|
PlainText<'s>,
|
|
original,
|
|
wasm_context,
|
|
{ WasmAstNode::PlainText(original) },
|
|
{ "plain-text".into() },
|
|
{ Ok((Vec::new(), WasmPlainText {},)) }
|
|
);
|