Home
last modified time | relevance | path

Searched refs:catches (Results 1 – 12 of 12) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DTryCatch.php11 public array $catches; variable in PhpParser\\Node\\Stmt\\TryCatch
19 * @param Catch_[] $catches Catches
23 …public function __construct(array $stmts, array $catches, ?Finally_ $finally = null, array $attrib… argument
26 $this->catches = $catches;
/PHP-Parser/test/code/formatPreservation/
H A DlistRemoval.test126 $catch = $stmts[0]->catches[2];
127 unset($stmts[0]->catches[2]);
128 $stmts[0]->catches = array_values($stmts[0]->catches);
129 array_splice($stmts[0]->catches, 1, 0, [$catch]);
159 unset($stmts[0]->catches[2]);
160 $stmts[0]->catches = array_values($stmts[0]->catches);
H A DremovalViaNull.test214 $stmts[0]->catches[0]->var = null;
H A DlistInsertion.test52 $stmts[0]->catches[0]->types[] = new Node\Name('Bar');
102 $stmts[0]->catches[] = new Stmt\Catch_([new Node\Name('Bar')], new Expr\Variable('bar'), []);
H A DinsertionOfNullable.test195 $stmts[0]->catches[0]->var = new Expr\Variable('e');
/PHP-Parser/test/code/parser/stmt/
H A DtryCatch.test37 catches: array(
98 catches: array(
120 catches: array(
H A DtryCatch_without_variable.test15 catches: array(
H A DtryWithoutCatch.test23 catches: array(
H A DmultiCatch.test21 catches: array(
/PHP-Parser/grammar/
H A Dphp.y402 | T_TRY '{' inner_statement_list '}' catches optional_finally
418 catches:
420 | catches catch { push($1, $2); }
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php952 . ($node->catches ? ' ' . $this->pImplode($node->catches, ' ') : '')
/PHP-Parser/lib/PhpParser/
H A DParserAbstract.php1048 if (empty($node->catches) && null === $node->finally) {

Completed in 25 milliseconds