mxmlextrema_as3parser/tree/
try_statement.rs1use crate::ns::*;
2use serde::{Serialize, Deserialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct TryStatement {
6 pub location: Location,
7 pub block: Rc<Block>,
8 pub catch_clauses: Vec<CatchClause>,
9 pub finally_clause: Option<FinallyClause>,
10}
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct CatchClause {
14 pub location: Location,
15 pub parameter: TypedDestructuring,
16 pub block: Rc<Block>,
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize)]
20pub struct FinallyClause {
21 pub location: Location,
22 pub block: Rc<Block>,
23}