function Parser::parseCatchParameter
Parses the catch parameter of a catch block in a try-catch statement
Return value
Node\Node|null
1 call to Parser::parseCatchParameter()
- Parser::parseCatch in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Parser.php - Parses the catch block of a try-catch statement
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Parser.php, line 642
Class
- Parser
- Parser class
Namespace
Peast\SyntaxCode
protected function parseCatchParameter() {
if ($param = $this->parseIdentifier(static::$bindingIdentifier)) {
return $param;
}
elseif ($param = $this->parseBindingPattern()) {
return $param;
}
return null;
}