/template/twigstarter/vendor/twig/twig/src/TokenParser/ |
H A D | AutoEscapeTokenParser.php | 36 $value = $expr->getAttribute('value');
|
H A D | EmbedTokenParser.php | 34 …$parentToken = new Token(/* Token::STRING_TYPE */ 7, $parent->getAttribute('value'), $token->getLi… 36 …$parentToken = new Token(/* Token::NAME_TYPE */ 5, $parent->getAttribute('name'), $token->getLine(… 58 …return new EmbedNode($module->getTemplateName(), $module->getAttribute('index'), $variables, $only…
|
H A D | ForTokenParser.php | 63 …$keyTarget = new AssignNameExpression($keyTarget->getAttribute('name'), $keyTarget->getTemplateLin… 65 …$valueTarget = new AssignNameExpression($valueTarget->getAttribute('name'), $valueTarget->getTempl… 69 …$valueTarget = new AssignNameExpression($valueTarget->getAttribute('name'), $valueTarget->getTempl… 93 …Node('node') instanceof NameExpression && 'loop' == $node->getNode('node')->getAttribute('name')) { 110 …Node('node') instanceof NameExpression && 'loop' == $node->getNode('node')->getAttribute('name')) { 112 …if ($attribute instanceof ConstantExpression && \in_array($attribute->getAttribute('value'), ['len… 113 … variable is not defined when looping with a condition.', $attribute->getAttribute('value')), $nod…
|
/template/twigstarter/vendor/twig/twig/src/Node/ |
H A D | ForLoopNode.php | 30 if ($this->getAttribute('else')) { 34 if ($this->getAttribute('with_loop')) { 41 if (!$this->getAttribute('ifexpr')) {
|
H A D | ForNode.php | 58 if ($this->getAttribute('with_loop')) { 68 if (!$this->getAttribute('ifexpr')) { 84 $this->loop->setAttribute('with_loop', $this->getAttribute('with_loop')); 85 $this->loop->setAttribute('ifexpr', $this->getAttribute('ifexpr')); 112 …\''.$this->getNode('key_target')->getAttribute('name').'\'], $context[\''.$this->getNode('value_ta…
|
H A D | BlockNode.php | 33 …("public function block_%s(\$context, array \$blocks = [])\n", $this->getAttribute('name')), "{\n")
|
H A D | BlockReferenceNode.php | 33 …->write(sprintf("\$this->displayBlock('%s', \$context, \$blocks);\n", $this->getAttribute('name')))
|
H A D | EmbedNode.php | 38 ->string($this->getAttribute('name')) 44 ->string($this->getAttribute('index'))
|
H A D | ImportNode.php | 35 ->repr($this->getNode('var')->getAttribute('name')) 39 if ($this->getAttribute('global')) { 42 ->repr($this->getNode('var')->getAttribute('name')) 47 …de('expr') instanceof NameExpression && '_self' === $this->getNode('expr')->getAttribute('name')) {
|
H A D | IncludeNode.php | 39 if ($this->getAttribute('ignore_missing')) { 93 $compiler->raw(false === $this->getAttribute('only') ? '$context' : '[]'); 94 } elseif (false === $this->getAttribute('only')) {
|
H A D | MacroNode.php | 41 ->write(sprintf('public function macro_%s(', $this->getAttribute('name')))
|
H A D | ModuleNode.php | 73 foreach ($this->getAttribute('embedded_templates') as $template) { 80 if (!$this->getAttribute('index')) { 147 if (!$this->getAttribute('index')) { 165 …nvironment()->getTemplateClass($this->getSourceContext()->getName(), $this->getAttribute('index'))) 400 if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
|
H A D | Node.php | 108 public function getAttribute($name) function in Twig\\Node\\Node
|
H A D | TextNode.php | 34 ->string($this->getAttribute('data'))
|
H A D | WithNode.php | 54 if ($this->getAttribute('only')) {
|
/template/twigstarter/vendor/twig/twig/src/Node/Expression/ |
H A D | ConstantExpression.php | 26 $compiler->repr($this->getAttribute('value'));
|
H A D | FilterExpression.php | 27 $name = $this->getNode('filter')->getAttribute('value');
|
H A D | FunctionExpression.php | 26 $name = $this->getAttribute('name'); 35 if ('constant' === $name && $this->getAttribute('is_defined_test')) {
|
H A D | GetAttrExpression.php | 37 $this->getAttribute('optimizable') 38 && (!$env->isStrictVariables() || $this->getAttribute('ignore_strict_check')) 39 && !$this->getAttribute('is_defined_test') 40 && Template::ARRAY_CALL === $this->getAttribute('type') 62 if ($this->getAttribute('ignore_strict_check')) { 79 ->repr($this->getAttribute('type')) 80 ->raw(', ')->repr($this->getAttribute('is_defined_test')) 81 ->raw(', ')->repr($this->getAttribute('ignore_strict_check'))
|
H A D | MethodCallExpression.php | 29 if ($this->getAttribute('is_defined_test')) { 32 ->repr($this->getNode('node')->getAttribute('name')) 34 ->repr($this->getAttribute('method')) 43 ->repr($this->getNode('node')->getAttribute('name')) 45 ->repr($this->getAttribute('method'))
|
H A D | NameExpression.php | 32 $name = $this->getAttribute('name'); 36 if ($this->getAttribute('is_defined_test')) { 56 } elseif ($this->getAttribute('always_defined')) { 63 …if ($this->getAttribute('ignore_strict_check') || !$compiler->getEnvironment()->isStrictVariables(… 90 return isset($this->specialVars[$this->getAttribute('name')]); 95 return !$this->isSpecial() && !$this->getAttribute('is_defined_test');
|
H A D | TempNameExpression.php | 27 ->raw($this->getAttribute('name'))
|
H A D | TestExpression.php | 31 $name = $this->getAttribute('name');
|
/template/twigstarter/vendor/twig/twig/src/NodeVisitor/ |
H A D | SafeAnalysisNodeVisitor.php | 96 $name = $node->getNode('filter')->getAttribute('value'); 109 $name = $node->getAttribute('name'); 118 if ($node->getAttribute('safe')) { 124 $name = $node->getNode('node')->getAttribute('name');
|
H A D | SandboxNodeVisitor.php | 57 …ceof FilterExpression && !isset($this->filters[$node->getNode('filter')->getAttribute('value')])) { 58 $this->filters[$node->getNode('filter')->getAttribute('value')] = $node; 62 …if ($node instanceof FunctionExpression && !isset($this->functions[$node->getAttribute('name')])) { 63 $this->functions[$node->getAttribute('name')] = $node; 76 if ($node instanceof SetNode && !$node->getAttribute('capture')) {
|