Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseBreakStatement example
elseif
(
$val
=== ";" &&
$statement
=
$this
->
parseEmptyStatement
(
)
)
{
return
$statement
;
}
elseif
(
$val
=== "if" &&
$statement
=
$this
->
parseIfStatement
(
)
)
{
return
$statement
;
}
elseif
(
(
$val
=== "for" ||
$val
=== "while" ||
$val
=== "do" ||
$val
=== "switch"
)
&&
$statement
=
$this
->
parseBreakableStatement
(
)
)
{
return
$statement
;
}
elseif
(
$val
== "continue" &&
$statement
=
$this
->
parseContinueStatement
(
)
)
{
return
$statement
;
}
elseif
(
$val
=== "break" &&
$statement
=
$this
->
parseBreakStatement
(
)
)
{
return
$statement
;
}
elseif
(
$this
->context->allowReturn &&
$val
=== "return" &&
$statement
=
$this
->
parseReturnStatement
(
)
)
{
return
$statement
;
}
elseif
(
$val
=== "with" &&
$statement
=
$this
->
parseWithStatement
(
)
)
{
return
$statement
;
}
elseif
(
$val
=== "throw" &&
$statement
=
$this
->
parseThrowStatement
(
)
)
{
return
$statement
;
}
elseif
(
$val
=== "try" &&
$statement
=
$this
->
parseTryStatement
(
)
)
{