Home
last modified time | relevance | path

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

123

/template/twigstarter/vendor/twig/twig/src/Node/
H A DModuleNode.php92 $compiler->subcompile($this->getNode('blocks'));
112 $parent = $this->getNode('parent');
189 $countTraits = \count($this->getNode('traits'));
193 $node = $trait->getNode('template');
316 ->subcompile($this->getNode('body'))
320 $parent = $this->getNode('parent');
341 ->subcompile($this->getNode('display_end'))
350 ->subcompile($this->getNode('class_end'))
358 $compiler->subcompile($this->getNode('macros'));
386 $nodes = $this->getNode('body')->getNode(0);
[all …]
H A DSetNode.php36 $values = $this->getNode('values');
48 if (\count($this->getNode('names')) > 1) {
50 foreach ($this->getNode('names') as $idx => $node) {
66 ->subcompile($this->getNode('values'))
70 $compiler->subcompile($this->getNode('names'), false);
80 if (\count($this->getNode('names')) > 1) {
82 foreach ($this->getNode('values') as $idx => $value) {
94 ->subcompile($this->getNode('values'))
98 $compiler->subcompile($this->getNode('values'));
H A DIfNode.php37 for ($i = 0, $count = \count($this->getNode('tests')); $i < $count; $i += 2) {
50 ->subcompile($this->getNode('tests')->getNode($i))
53 ->subcompile($this->getNode('tests')->getNode($i + 1))
62 ->subcompile($this->getNode('else'))
H A DForNode.php50 ->subcompile($this->getNode('seq'))
89 ->subcompile($this->getNode('key_target'))
91 ->subcompile($this->getNode('value_target'))
94 ->subcompile($this->getNode('body'))
103 ->subcompile($this->getNode('else'))
112 …t[\'_iterated\'], $context[\''.$this->getNode('key_target')->getAttribute('name').'\'], $context[\…
H A DImportNode.php35 ->repr($this->getNode('var')->getAttribute('name'))
42 ->repr($this->getNode('var')->getAttribute('name'))
47 …if ($this->getNode('expr') instanceof NameExpression && '_self' === $this->getNode('expr')->getAtt…
52 ->subcompile($this->getNode('expr'))
H A DMacroNode.php44 $count = \count($this->getNode('arguments'));
46 foreach ($this->getNode('arguments') as $name => $default) {
71 foreach ($this->getNode('arguments') as $name => $default) {
100 ->subcompile($this->getNode('body'))
H A DIncludeNode.php81 ->subcompile($this->getNode('expr'))
97 ->subcompile($this->getNode('variables'))
102 $compiler->subcompile($this->getNode('variables'));
/template/twigstarter/vendor/twig/twig/src/NodeVisitor/
H A DOptimizerNodeVisitor.php100 $exprNode = $node->getNode('expr');
118 …if ($node instanceof FilterExpression && 'raw' == $node->getNode('filter')->getAttribute('value'))…
119 return $node->getNode('node');
134 … array_unshift($this->loopsTargets, $node->getNode('value_target')->getAttribute('name'));
135 array_unshift($this->loopsTargets, $node->getNode('key_target')->getAttribute('name'));
167 && (!$node->getNode('arguments')->hasNode('with_context')
168 … || false !== $node->getNode('arguments')->getNode('with_context')->getAttribute('value')
176 && (!$node->getNode('attribute') instanceof ConstantExpression
177 || 'parent' === $node->getNode('attribute')->getAttribute('value')
180 || ($node->getNode('node') instanceof NameExpression
[all …]
H A DMacroAutoImportNodeVisitor.php47 …$node->getNode('constructor_end')->setNode('_auto_macro_import', new ImportNode(new NameExpression…
52 $node->getNode('node') instanceof NameExpression &&
53 '_self' === $node->getNode('node')->getAttribute('name') &&
54 $node->getNode('attribute') instanceof ConstantExpression
58 $name = $node->getNode('attribute')->getAttribute('value');
59 …$node = new MethodCallExpression($node->getNode('node'), 'macro_'.$name, $node->getNode('arguments…
H A DEscaperNodeVisitor.php60 $this->safeVars[] = $node->getNode('var')->getAttribute('name');
75 $expression = $node->getNode('expr');
94 $expr2Safe = $this->isSafeFor($type, $expression->getNode('expr2'), $env);
95 $expr3Safe = $this->isSafeFor($type, $expression->getNode('expr3'), $env);
103 $expr2 = $expression->getNode('expr2');
109 $expr3 = $expression->getNode('expr3');
116 …return new ConditionalExpression($expression->getNode('expr1'), $expr2, $expr3, $expression->getTe…
121 $expression = $node->getNode('node');
136 $expression = $node->getNode('expr');
149 $name = $filter->getNode('filter')->getAttribute('value');
[all …]
H A DSafeAnalysisNodeVisitor.php92 …$safe = $this->intersectSafe($this->getSafe($node->getNode('expr2')), $this->getSafe($node->getNod…
96 $name = $node->getNode('filter')->getAttribute('value');
97 $args = $node->getNode('arguments');
101 …$safe = $this->intersectSafe($this->getSafe($node->getNode('node')), $filter->getPreservesSafety()…
110 $args = $node->getNode('arguments');
123 …} elseif ($node instanceof GetAttrExpression && $node->getNode('node') instanceof NameExpression) {
124 $name = $node->getNode('node')->getAttribute('name');
H A DSandboxNodeVisitor.php57 …if ($node instanceof FilterExpression && !isset($this->filters[$node->getNode('filter')->getAttrib…
58 $this->filters[$node->getNode('filter')->getAttribute('value')] = $node;
104 …$node->setNode('constructor_end', new Node([new CheckSecurityCallNode(), $node->getNode('construct…
105 …w CheckSecurityNode($this->filters, $this->tags, $this->functions), $node->getNode('class_end')]));
117 $expr = $node->getNode($name);
125 $args = $node->getNode($name);
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
H A 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))
H A DSameasTest.php28 ->subcompile($this->getNode('node'))
30 ->subcompile($this->getNode('arguments')->getNode(0))
H A DDivisiblebyTest.php30 ->subcompile($this->getNode('node'))
32 ->subcompile($this->getNode('arguments')->getNode(0))
H A DDefinedTest.php65 if ($node->getNode('node') instanceof GetAttrExpression) {
66 $this->changeIgnoreStrictCheck($node->getNode('node'));
72 $compiler->subcompile($this->getNode('node'));
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DGetAttrExpression.php45 ->subcompile($this->getNode('node'))
53 ->subcompile($this->getNode('attribute'))
63 $this->getNode('node')->setAttribute('ignore_strict_check', true);
67 ->subcompile($this->getNode('node'))
69 ->subcompile($this->getNode('attribute'))
73 $compiler->raw(', ')->subcompile($this->getNode('arguments'));
83 ->raw(', ')->repr($this->getNode('node')->getTemplateLine())
H A DNullCoalesceExpression.php47 if ($this->getNode('expr2') instanceof NameExpression) {
48 $this->getNode('expr2')->setAttribute('always_defined', true);
51 ->subcompile($this->getNode('expr2'))
53 ->subcompile($this->getNode('expr3'))
H A DConditionalExpression.php28 ->subcompile($this->getNode('expr1'))
30 ->subcompile($this->getNode('expr2'))
32 ->subcompile($this->getNode('expr3'))
H A DArrowFunctionExpression.php35 foreach ($this->getNode('names') as $i => $name) {
49 foreach ($this->getNode('names') as $name) {
60 ->subcompile($this->getNode('expr'))
H A DMethodCallExpression.php32 ->repr($this->getNode('node')->getAttribute('name'))
43 ->repr($this->getNode('node')->getAttribute('name'))
49 foreach ($this->getNode('arguments')->getKeyValuePairs() as $pair) {
/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DForTokenParser.php62 $keyTarget = $targets->getNode(0);
64 $valueTarget = $targets->getNode(1);
68 $valueTarget = $targets->getNode(0);
93 …de instanceof GetAttrExpression && $node->getNode('node') instanceof NameExpression && 'loop' == $…
110 …de instanceof GetAttrExpression && $node->getNode('node') instanceof NameExpression && 'loop' == $…
111 $attribute = $node->getNode('attribute');
/template/twigstarter/vendor/twig/twig/src/Profiler/NodeVisitor/
H A DProfilerNodeVisitor.php47 …me, Profile::TEMPLATE, $node->getTemplateName(), $this->varName), $node->getNode('display_start')]…
48 …de('display_end', new Node([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/
H A DMatchesBinary.php22 ->subcompile($this->getNode('right'))
24 ->subcompile($this->getNode('left'))
H A DRangeBinary.php22 ->subcompile($this->getNode('left'))
24 ->subcompile($this->getNode('right'))

123