mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-04 18:38:05 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
39 lines
661 B
Plaintext
39 lines
661 B
Plaintext
Try/catch
|
|
-----
|
|
<?php
|
|
try {
|
|
|
|
} catch (A $b) {
|
|
|
|
} catch (B $c) {
|
|
|
|
}
|
|
-----
|
|
array(
|
|
0: Stmt_TryCatch(
|
|
stmts: array(
|
|
)
|
|
catches: array(
|
|
0: Stmt_Catch(
|
|
type: Name(
|
|
parts: array(
|
|
0: A
|
|
)
|
|
)
|
|
var: b
|
|
stmts: array(
|
|
)
|
|
)
|
|
1: Stmt_Catch(
|
|
type: Name(
|
|
parts: array(
|
|
0: B
|
|
)
|
|
)
|
|
var: c
|
|
stmts: array(
|
|
)
|
|
)
|
|
)
|
|
)
|
|
) |