Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseModuleExportName example
protected
function
parseExportDeclaration
(
)
{
if
(
$token
=
$this
->scanner->
consume
(
"export"
)
)
{
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
)
;
}