Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getFinalizer example
break
;
case
"ThrowStatement":
$code
.= "throw " .
$this
->
renderNode
(
$node
->
getArgument
(
)
)
;
break
;
case
"TryStatement":
$code
.= "try" .
$this
->
renderStatementBlock
(
$node
,
$node
->
getBlock
(
)
, true
)
;
if
(
$handler
=
$node
->
getHandler
(
)
)
{
$code
.=
$this
->renderOpts->sao .
$this
->
renderNode
(
$handler
)
;
}
if
(
$finalizer
=
$node
->
getFinalizer
(
)
)
{
$code
.=
$this
->renderOpts->sao .
"finally" .
$this
->
renderStatementBlock
(
$node
,
$finalizer
, true
)
;
}
break
;
case
"UnaryExpression":
case
"UpdateExpression":
$prefix
=
$node
->
getPrefix
(
)
;
if
(
$prefix
)
{
$code
.=
$node
->
getOperator
(
)
;
if
(
preg_match
(
"#^[a-z]+$#i",
$node
->
getOperator
(
)
)
)
{