parser/tests/0024/ast.txt
Saif Eddin Gmati 558ce71563
feat: add test generator (#134)
Co-authored-by: Ryan Chandler <ryangjchandler@gmail.com>
closes https://github.com/ryangjchandler/php-parser-rs/issues/130
2022-11-29 23:19:51 +00:00

97 lines
2.1 KiB
Plaintext

[
Try {
body: [],
catches: [
Catch {
types: Identifier(
Identifier {
name: "Exception",
},
),
var: Some(
Variable {
name: "e",
},
),
body: [],
},
Catch {
types: Identifier(
Identifier {
name: "CustomException",
},
),
var: Some(
Variable {
name: "e",
},
),
body: [],
},
],
finally: None,
},
Try {
body: [],
catches: [
Catch {
types: Identifier(
Identifier {
name: "Exception",
},
),
var: Some(
Variable {
name: "e",
},
),
body: [],
},
],
finally: Some(
[],
),
},
Try {
body: [],
catches: [],
finally: Some(
[],
),
},
Try {
body: [],
catches: [
Catch {
types: Identifier(
Identifier {
name: "Exception",
},
),
var: None,
body: [],
},
],
finally: None,
},
Try {
body: [],
catches: [
Catch {
types: Identifier(
Identifier {
name: "Exception",
},
),
var: Some(
Variable {
name: "e",
},
),
body: [],
},
],
finally: None,
},
]