Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setInit example
if
(
$this
->scanner->
consume
(
";"
)
)
{
$update
=
$this
->
isolateContext
(
array
(
"allowIn" => true
)
, "parseExpression"
)
;
if
(
$this
->scanner->
consume
(
")"
)
&&
$body
=
$this
->
parseStatement
(
)
)
{
$node
=
$this
->
createNode
(
"ForStatement",
$forToken
)
;
$node
->
setInit
(
$init
)
;
$node
->
setTest
(
$test
)
;
$node
->
setUpdate
(
$update
)
;
$node
->
setBody
(
$body
)
;
return
$this
->
completeNode
(
$node
)
;
}
}
}
else
{
$this
->scanner->
setState
(
$state
)
;
if
(
$decl
=
$this
->
parseForBinding
(
)
)
{