Lines Matching refs:node
36 …public function __construct(\Twig_NodeInterface $node, $name, \Twig_NodeInterface $arguments = nul… argument
38 if ($node instanceof NameExpression) {
39 $node->setAttribute('is_defined_test', true);
40 } elseif ($node instanceof GetAttrExpression) {
41 $node->setAttribute('is_defined_test', true);
42 $this->changeIgnoreStrictCheck($node);
43 } elseif ($node instanceof BlockReferenceExpression) {
44 $node->setAttribute('is_defined_test', true);
45 … } elseif ($node instanceof FunctionExpression && 'constant' === $node->getAttribute('name')) {
46 $node->setAttribute('is_defined_test', true);
47 } elseif ($node instanceof ConstantExpression || $node instanceof ArrayExpression) {
48 $node = new ConstantExpression(true, $node->getTemplateLine());
53 parent::__construct($node, $name, $arguments, $lineno);
56 protected function changeIgnoreStrictCheck(GetAttrExpression $node) argument
58 $node->setAttribute('ignore_strict_check', true);
60 if ($node->getNode('node') instanceof GetAttrExpression) {
61 $this->changeIgnoreStrictCheck($node->getNode('node'));