Home
last modified time | relevance | path

Searched refs:ConstantExpression (Results 1 – 23 of 23) sorted by relevance

/template/twigstarter/vendor/twig/twig/src/Node/Expression/Filter/
H A DDefaultFilter.php16 use Twig\Node\Expression\ConstantExpression; alias
32 …public function __construct(Node $node, ConstantExpression $filterName, Node $arguments, int $line…
34 …$default = new FilterExpression($node, new ConstantExpression('default', $node->getTemplateLine())…
38 …$false = \count($arguments) ? $arguments->getNode(0) : new ConstantExpression('', $node->getTempla…
/template/twigstarter/vendor/twig/twig/src/
H A DExpressionParser.php23 use Twig\Node\Expression\ConstantExpression; alias
218 $node = new ConstantExpression(true, $token->getLine());
223 $node = new ConstantExpression(false, $token->getLine());
230 $node = new ConstantExpression(null, $token->getLine());
244 $node = new ConstantExpression($token->getValue(), $token->getLine());
370 $key = new ConstantExpression($token->getValue(), $token->getLine());
482 $arg = new ConstantExpression($token->getValue(), $lineno);
495 if (!$arg instanceof ConstantExpression) {
513 $arg = new ConstantExpression(0, $token->getLine());
524 $length = new ConstantExpression(null, $token->getLine());
[all …]
/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DUseTokenParser.php15 use Twig\Node\Expression\ConstantExpression; alias
38 if (!$template instanceof ConstantExpression) {
52 $targets[$name] = new ConstantExpression($alias, -1);
H A DAutoEscapeTokenParser.php16 use Twig\Node\Expression\ConstantExpression; alias
33 if (!$expr instanceof ConstantExpression) {
H A DFilterTokenParser.php16 use Twig\Node\Expression\ConstantExpression; alias
39 …$ref = new BlockReferenceExpression(new ConstantExpression($name, $lineno), null, $lineno, $this->…
H A DEmbedTokenParser.php15 use Twig\Node\Expression\ConstantExpression; alias
33 if ($parent instanceof ConstantExpression) {
H A DForTokenParser.php17 use Twig\Node\Expression\ConstantExpression; alias
112 …if ($attribute instanceof ConstantExpression && \in_array($attribute->getAttribute('value'), ['len…
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
H A DDefinedTest.php18 use Twig\Node\Expression\ConstantExpression; alias
49 } elseif ($node instanceof ConstantExpression || $node instanceof ArrayExpression) {
50 $node = new ConstantExpression(true, $node->getTemplateLine());
/template/twigstarter/vendor/twig/twig/lib/Twig/Node/Expression/
H A DConstant.php3 use Twig\Node\Expression\ConstantExpression; alias
11 class Twig_Node_Expression_Constant extends ConstantExpression
/template/twigstarter/vendor/twig/twig/src/NodeVisitor/
H A DEscaperNodeVisitor.php21 use Twig\Node\Expression\ConstantExpression; alias
196 $name = new ConstantExpression('escape', $line);
197 …$args = new Node([new ConstantExpression((string) $type, $line), new ConstantExpression(null, $lin…
H A DMacroAutoImportNodeVisitor.php16 use Twig\Node\Expression\ConstantExpression; alias
54 $node->getNode('attribute') instanceof ConstantExpression
H A DSafeAnalysisNodeVisitor.php17 use Twig\Node\Expression\ConstantExpression; alias
81 if ($node instanceof ConstantExpression) {
H A DOptimizerNodeVisitor.php17 use Twig\Node\Expression\ConstantExpression; alias
176 && (!$node->getNode('attribute') instanceof ConstantExpression
/template/twigstarter/vendor/twig/twig/src/Node/
H A DSandboxedPrintNode.php15 use Twig\Node\Expression\ConstantExpression; alias
37 if ($expr instanceof ConstantExpression) {
H A DDeprecatedNode.php16 use Twig\Node\Expression\ConstantExpression; alias
36 if ($expr instanceof ConstantExpression) {
H A DEmbedNode.php16 use Twig\Node\Expression\ConstantExpression; alias
28 …parent::__construct(new ConstantExpression('not_used', $lineno), $variables, $only, $ignoreMissing…
H A DSetNode.php15 use Twig\Node\Expression\ConstantExpression; alias
38 …$this->setNode('values', new ConstantExpression($values->getAttribute('data'), $values->getTemplat…
H A DModuleNode.php17 use Twig\Node\Expression\ConstantExpression; alias
121 if ($parent instanceof ConstantExpression) {
323 if ($parent instanceof ConstantExpression) {
456 if ($node instanceof ConstantExpression) {
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DArrayExpression.php26 …if ($pair['key'] instanceof ConstantExpression && ctype_digit((string) $pair['key']->getAttribute(…
62 $key = new ConstantExpression(++$this->index, $value->getTemplateLine());
H A DConstantExpression.php17 class ConstantExpression extends AbstractExpression class
H A DFilterExpression.php20 …public function __construct(Node $node, ConstantExpression $filterName, Node $arguments, int $line…
H A DCallExpression.php190 … $optionalArguments[] = new ConstantExpression($callableParameter->getDefaultValue(), -1);
208 $arbitraryArguments->addElement($value, new ConstantExpression($key, -1));
/template/twigstarter/vendor/twig/twig/src/Extension/
H A DEscaperExtension.php146 use Twig\Node\Expression\ConstantExpression; alias
421 if ($arg instanceof ConstantExpression) {