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