Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseJSXChildren example
return
null;
}
$endOpeningToken
=
$this
->scanner->
getNextToken
(
)
;
if
(
!
$endOpeningToken
||
$endOpeningToken
->value !== ">"
)
{
return
null;
}
$this
->scanner->
consumeToken
(
)
;
$this
->scanner->
consumeToken
(
)
;
$children
=
$this
->
parseJSXChildren
(
)
;
if
(
!
(
$startClosingToken
=
$this
->scanner->
consume
(
"<"
)
)
||
!
$this
->scanner->
consume
(
"/"
)
||
!
$this
->scanner->
reconsumeCurrentTokenInJSXMode
(
)
||
$endOpeningToken
->value !== ">"
)
{
$this
->
error
(
)
;
}
$this
->scanner->
consumeToken
(
)
;
//Opening tag
$openingNode
=
$this
->
createJSXNode
(