Implement property drawer.
This commit is contained in:
		
							parent
							
								
									7f3f5fb889
								
							
						
					
					
						commit
						c2b3509b6a
					
				| @ -4,16 +4,12 @@ use serde::Serialize; | |||||||
| use super::ast_node::WasmAstNode; | use super::ast_node::WasmAstNode; | ||||||
| use super::macros::to_wasm; | use super::macros::to_wasm; | ||||||
| use super::to_wasm::ToWasm; | use super::to_wasm::ToWasm; | ||||||
| use super::AdditionalProperties; |  | ||||||
| use crate::compare::ElispFact; | use crate::compare::ElispFact; | ||||||
| use crate::types::PropertyDrawer; | use crate::types::PropertyDrawer; | ||||||
| use crate::wasm::to_wasm::ToWasmStandardProperties; | use crate::wasm::to_wasm::ToWasmStandardProperties; | ||||||
| 
 | 
 | ||||||
| #[derive(Debug, Serialize, Deserialize)] | #[derive(Debug, Serialize, Deserialize)] | ||||||
| pub struct WasmPropertyDrawer { | pub struct WasmPropertyDrawer {} | ||||||
|     #[serde(flatten)] |  | ||||||
|     pub(crate) additional_properties: AdditionalProperties, |  | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| to_wasm!( | to_wasm!( | ||||||
|     WasmPropertyDrawer, |     WasmPropertyDrawer, | ||||||
| @ -21,7 +17,7 @@ to_wasm!( | |||||||
|     original, |     original, | ||||||
|     wasm_context, |     wasm_context, | ||||||
|     { WasmAstNode::PropertyDrawer(original) }, |     { WasmAstNode::PropertyDrawer(original) }, | ||||||
|     { "TODO".into() }, |     { "property-drawer".into() }, | ||||||
|     { |     { | ||||||
|         let children = original |         let children = original | ||||||
|             .children |             .children | ||||||
| @ -33,11 +29,6 @@ to_wasm!( | |||||||
|             }) |             }) | ||||||
|             .collect::<Result<Vec<_>, _>>()?; |             .collect::<Result<Vec<_>, _>>()?; | ||||||
| 
 | 
 | ||||||
|         Ok(( |         Ok((children, WasmPropertyDrawer {})) | ||||||
|             children, |  | ||||||
|             WasmPropertyDrawer { |  | ||||||
|                 additional_properties: AdditionalProperties::default(), |  | ||||||
|             }, |  | ||||||
|         )) |  | ||||||
|     } |     } | ||||||
| ); | ); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander