Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseFromClause example
if
(
$this
->scanner->
consume
(
"*"
)
)
{
$exported
= null;
if
(
$this
->features->exportedNameInExportAll &&
$this
->scanner->
consume
(
"as"
)
)
{
$exported
=
$this
->
parseModuleExportName
(
)
;
if
(
!
$exported
)
{
$this
->
error
(
)
;
}
}
if
(
$source
=
$this
->
parseFromClause
(
)
)
{
$this
->
assertEndOfStatement
(
)
;
$node
=
$this
->
createNode
(
"ExportAllDeclaration",
$token
)
;
$node
->
setSource
(
$source
)
;
$node
->
setExported
(
$exported
)
;
return
$this
->
completeNode
(
$node
)
;
}
}
elseif
(
$this
->scanner->
consume
(
"default"
)
)
{
$lookaheadTokens
= array
(
"function", "class"
)
;
if
(
$this
->features->asyncAwait
)
{
$lookaheadTokens
[
]
= array
(
"async", true
)
;
}