Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getQuasi example
"(" .
$this
->renderOpts->sirb .
$this
->
renderNode
(
$node
->
getDiscriminant
(
)
)
.
$this
->renderOpts->sirb .
")" .
$this
->
renderStatementBlock
(
$node
,
$node
->
getCases
(
)
, true, false, false
)
;
break
;
case
"TaggedTemplateExpression":
$code
.=
$this
->
renderNode
(
$node
->
getTag
(
)
)
.
$this
->
renderNode
(
$node
->
getQuasi
(
)
)
;
break
;
case
"TemplateElement":
$code
.=
$node
->
getRawValue
(
)
;
break
;
case
"TemplateLiteral":
$code
.= "`";
foreach
(
$node
->
getParts
(
)
as
$part
)
{
if
(
$part
->
getType
(
)
=== "TemplateElement"
)
{
$code
.=
$this
->
renderNode
(
$part
)
;
}
else
{
$code
.= "$" . "{" .
$this
->
renderNode
(
$part
)
. "}";
}