Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseArrayLiteral example
if
(
$token
=
$this
->scanner->
consume
(
"this"
)
)
{
$node
=
$this
->
createNode
(
"ThisExpression",
$token
)
;
return
$this
->
completeNode
(
$node
)
;
}
elseif
(
$exp
=
$this
->
parseFunctionOrGeneratorExpression
(
)
)
{
return
$exp
;
}
elseif
(
$exp
=
$this
->
parseClassExpression
(
)
)
{
return
$exp
;
}
elseif
(
$exp
=
$this
->
parseIdentifier
(
static
::
$identifierReference
)
)
{
return
$exp
;
}
elseif
(
$exp
=
$this
->
parseLiteral
(
)
)
{
return
$exp
;
}
elseif
(
$exp
=
$this
->
parseArrayLiteral
(
)
)
{
return
$exp
;
}
elseif
(
$exp
=
$this
->
parseObjectLiteral
(
)
)
{
return
$exp
;
}
elseif
(
$exp
=
$this
->
parseRegularExpressionLiteral
(
)
)
{
return
$exp
;
}
elseif
(
$exp
=
$this
->
parseTemplateLiteral
(
)
)
{
return
$exp
;
}
elseif
(
$this
->jsx
&&
(
$exp
=
$this
->
parseJSXFragment
(
)
)
)
{
return
$exp
;
}
elseif
(
$this
->jsx
&&
(
$exp
=
$this
->
parseJSXElement
(
)
)
)
{
return
$exp
;
}