34 lines
761 B
Rust
34 lines
761 B
Rust
use std::marker::PhantomData;
|
|
|
|
use organic::types::Subscript;
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
|
|
use super::macros::to_wasm;
|
|
use super::standard_properties::WasmStandardProperties;
|
|
use super::to_wasm::ToWasm;
|
|
use crate::wasm::to_wasm::ToWasmStandardProperties;
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
#[serde(tag = "ast_node")]
|
|
#[serde(rename = "org-data")]
|
|
pub(crate) struct WasmSubscript<'s> {
|
|
standard_properties: WasmStandardProperties,
|
|
children: Vec<()>,
|
|
phantom: PhantomData<&'s ()>,
|
|
}
|
|
|
|
to_wasm!(
|
|
WasmSubscript<'s>,
|
|
Subscript<'s>,
|
|
wasm_context,
|
|
standard_properties,
|
|
{
|
|
Ok(WasmSubscript {
|
|
standard_properties,
|
|
children: Vec::new(),
|
|
phantom: PhantomData,
|
|
})
|
|
}
|
|
);
|