mxmlextrema_as3parser/tree/
try_statement.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::ns::*;
use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TryStatement {
    pub location: Location,
    pub block: Rc<Block>,
    pub catch_clauses: Vec<CatchClause>,
    pub finally_clause: Option<FinallyClause>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CatchClause {
    pub location: Location,
    pub parameter: TypedDestructuring,
    pub block: Rc<Block>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FinallyClause {
    pub location: Location,
    pub block: Rc<Block>,
}