Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseFinally example
if
(
$token
=
$this
->scanner->
consume
(
"try"
)
)
{
if
(
$block
=
$this
->
parseBlock
(
)
)
{
$node
=
$this
->
createNode
(
"TryStatement",
$token
)
;
$node
->
setBlock
(
$block
)
;
if
(
$handler
=
$this
->
parseCatch
(
)
)
{
$node
->
setHandler
(
$handler
)
;
}
if
(
$finalizer
=
$this
->
parseFinally
(
)
)
{
$node
->
setFinalizer
(
$finalizer
)
;
}
if
(
$handler
||
$finalizer
)
{
return
$this
->
completeNode
(
$node
)
;
}
}
$this
->
error
(
)
;
}
return
null;
}