Home
last modified time | relevance | path

Searched refs:getNode (Results 1 – 25 of 72) sorted by relevance

123

/template/twigstarter/vendor/twig/twig/src/Node/
DSetNode.php43 …} elseif ($values instanceof PrintNode && $values->getNode('expr') instanceof ConstantExpression) {
44 $values = $values->getNode('expr');
58 if (\count($this->getNode('names')) > 1) {
60 foreach ($this->getNode('names') as $idx => $node) {
69 $compiler->subcompile($this->getNode('names'), false);
74 $compiler->subcompile($this->getNode('values'));
76 if (\count($this->getNode('names')) > 1) {
78 foreach ($this->getNode('values') as $idx => $value) {
88 if ($this->getNode('values') instanceof ConstantExpression) {
89 if ('' === $this->getNode('values')->getAttribute('value')) {
[all …]
DModuleNode.php116 $compiler->subcompile($this->getNode('blocks'));
139 $parent = $this->getNode('parent');
216 ->subcompile($this->getNode('constructor_start'))
226 $countTraits = \count($this->getNode('traits'));
229 foreach ($this->getNode('traits') as $i => $trait) {
230 $node = $trait->getNode('template');
242 ->subcompile($trait->getNode('template'))
251 foreach ($trait->getNode('targets') as $key => $value) {
260 ->subcompile($trait->getNode('template'))
321 foreach ($this->getNode('blocks') as $name => $node) {
[all …]
DIfNode.php32 $test = $tests->getNode((string) $i);
48 for ($i = 0, $count = \count($this->getNode('tests')); $i < $count; $i += 2) {
61 ->subcompile($this->getNode('tests')->getNode((string) $i))
66 if ($this->getNode('tests')->hasNode((string) ($i + 1))) {
67 $compiler->subcompile($this->getNode('tests')->getNode((string) ($i + 1)));
76 ->subcompile($this->getNode('else'))
DForNode.php58 ->subcompile($this->getNode('seq'))
91 ->subcompile($this->getNode('key_target'))
93 ->subcompile($this->getNode('value_target'))
96 ->subcompile($this->getNode('body'))
102 $compiler->subcompile($this->getNode('else'));
108 …ontext[\'_seq\'], $context[\''.$this->getNode('key_target')->getAttribute('name').'\'], $context[\…
DImportNode.php45 $compiler->subcompile($this->getNode('var'));
47 …if ($this->getNode('expr') instanceof ContextVariable && '_self' === $this->getNode('expr')->getAt…
52 ->subcompile($this->getNode('expr'))
DDeprecatedNode.php36 $expr = $this->getNode('expr');
49 $compiler->subcompile($this->getNode('package'));
55 $compiler->subcompile($this->getNode('version'));
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
DConditionalExpression.php30 if ($this->getNode('expr1') === $this->getNode('expr2')) {
33 ->subcompile($this->getNode('expr1'))
35 ->subcompile($this->getNode('expr3'))
40 ->subcompile($this->getNode('expr1'))
42 ->subcompile($this->getNode('expr2'))
44 ->subcompile($this->getNode('expr3'))
DGetAttrExpression.php65 ->subcompile($this->getNode('node'))
99 $this->getNode('node')->setAttribute('ignore_strict_check', true);
103 $node = $this->getNode('node');
109 $node = $node->getNode('node');
117 ->subcompile($nullSafeNode->getNode('node'))
129 $compiler->subcompile($this->getNode('node'));
134 ->subcompile($this->getNode('attribute'))
138 $compiler->raw(', ')->subcompile($this->getNode('arguments'));
148 ->raw(', ')->repr($this->getNode('node')->getTemplateLine())
184 $attribute = $this->getNode('attribute');
[all …]
DNullCoalesceExpression.php64 if ($this->getNode('expr2') instanceof ContextVariable) {
65 $this->getNode('expr2')->setAttribute('always_defined', true);
68 ->subcompile($this->getNode('expr2'))
70 ->subcompile($this->getNode('expr3'))
DMethodCallExpression.php38 ->repr($this->getNode('node')->getAttribute('name'))
49 ->repr($this->getNode('node')->getAttribute('name'))
53 ->subcompile($this->getNode('arguments'))
DMacroReferenceExpression.php54 ->subcompile($this->getNode('template'))
65 ->subcompile($this->getNode('template'))
73 ->subcompile($this->getNode('arguments'))
DArrowFunctionExpression.php45 ->subcompile($this->getNode('names'))
48 foreach ($this->getNode('names') as $name) {
59 ->subcompile($this->getNode('expr'))
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
DConstantTest.php32 ->subcompile($this->getNode('node'))
36 if ($this->getNode('arguments')->hasNode('1')) {
39 ->subcompile($this->getNode('arguments')->getNode('1'))
45 ->subcompile($this->getNode('arguments')->getNode('0'))
DSameasTest.php28 ->subcompile($this->getNode('node'))
30 ->subcompile($this->getNode('arguments')->getNode('0'))
DDivisiblebyTest.php30 ->subcompile($this->getNode('node'))
32 ->subcompile($this->getNode('arguments')->getNode('0'))
/template/twigstarter/vendor/twig/twig/src/NodeVisitor/
DOptimizerNodeVisitor.php103 $exprNode = $node->getNode('expr');
130 … array_unshift($this->loopsTargets, $node->getNode('value_target')->getAttribute('name'));
131 array_unshift($this->loopsTargets, $node->getNode('key_target')->getAttribute('name'));
163 && (!$node->getNode('arguments')->hasNode('with_context')
164 … || false !== $node->getNode('arguments')->getNode('with_context')->getAttribute('value')
172 && (!$node->getNode('attribute') instanceof ConstantExpression
173 || 'parent' === $node->getNode('attribute')->getAttribute('value')
176 || ($node->getNode('node') instanceof ContextVariable
177 && 'loop' === $node->getNode('node')->getAttribute('name')
DSafeAnalysisNodeVisitor.php110 …safe = $this->intersectSafe($this->getSafe($node->getNode($operands[0])), $this->getSafe($node->ge…
123 $safe = $filter->getSafe($node->getNode('arguments'));
130 …$safe = $this->intersectSafe($this->getSafe($node->getNode('node')), $filter->getPreservesSafety()…
144 $safe = $function->getSafe($node->getNode('arguments'));
154 …} elseif ($node instanceof GetAttrExpression && $node->getNode('node') instanceof ContextVariable)…
155 $name = $node->getNode('node')->getAttribute('name');
DEscaperNodeVisitor.php62 $this->safeVars[] = $node->getNode('var')->getNode('var')->getAttribute('name');
77 $expression = $node->getNode('expr');
103 $operand = $expression->getNode($name);
123 $name = $filter->getNode('filter', false)->getAttribute('value');
132 $node = $filter->getNode('node');
/template/twigstarter/vendor/twig/twig/src/Profiler/NodeVisitor/
DProfilerNodeVisitor.php47 …me, Profile::TEMPLATE, $node->getTemplateName(), $this->varName), $node->getNode('display_start')]…
48 …e('display_end', new Nodes([new LeaveProfileNode($this->varName), $node->getNode('display_end')]));
52 $node->getNode('body'),
58 $node->getNode('body'),
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Binary/
DElvisBinary.php37 ->subcompile($this->getNode('test'))
39 ->subcompile($this->getNode('left'))
41 ->subcompile($this->getNode('right'))
DNullCoalesceBinary.php53 ->subcompile($this->getNode('test'))
55 ->subcompile($this->getNode('left'))
57 ->subcompile($this->getNode('right'))
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Ternary/
DConditionalTernary.php36 ->subcompile($this->getNode('test'))
38 ->subcompile($this->getNode('left'))
40 ->subcompile($this->getNode('right'))
/template/twigstarter/vendor/twig/twig/src/Node/Expression/FunctionNode/
DEnumCasesFunction.php23 $arguments = $this->getNode('arguments');
25 $firstArgument = $arguments->getNode('enum');
27 $firstArgument = $arguments->getNode('0');
DEnumFunction.php23 $arguments = $this->getNode('arguments');
25 $firstArgument = $arguments->getNode('enum');
27 $firstArgument = $arguments->getNode('0');
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DForTokenParser.php54 $keyTarget = $targets->getNode('0');
56 $valueTarget = $targets->getNode('1');
59 $valueTarget = $targets->getNode('0');

123