Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setExported example
$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
)
;
}
if
(
(
$declaration
=
$this
->
isolateContext
(
array
(
"allowAwait" =>
$this
->features->topLevelAwait
)
,
"parseFunctionOrGeneratorDeclaration",