} elseif ($this->inAModule
) { if ( $node instanceof GetAttrExpression &&
$node->
getNode('node'
) instanceof NameExpression &&
'_self' ===
$node->
getNode('node'
)->
getAttribute('name'
) &&
$node->
getNode('attribute'
) instanceof ConstantExpression
) { $this->hasMacroCalls = true;
$name =
$node->
getNode('attribute'
)->
getAttribute('value'
);
$node =
new MethodCallExpression($node->
getNode('node'
), 'macro_'.
$name,
$node->
getNode('arguments'
),
$node->
getTemplateLine());
$node->
setAttribute('safe', true
);
} } return $node;
} public function getPriority(): int
{ // we must be ran before auto-escaping
return -10;
}