use crate::ns::*; use serde::{Serialize, Deserialize}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct TryStatement { pub location: Location, pub block: Rc, pub catch_clauses: Vec, pub finally_clause: Option, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct CatchClause { pub location: Location, pub parameter: TypedDestructuring, pub block: Rc, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct FinallyClause { pub location: Location, pub block: Rc, }