Lines Matching refs:node
139 …$node = new ModuleNode(new BodyNode([$body]), $this->parent, new Node($this->blocks), new Node($th…
143 $node = $traverser->traverse($node);
150 return $node;
209 $node = $subparser->parse($token);
210 if (null !== $node) {
211 $rv[] = $node;
287 public function setMacro($name, MacroNode $node) argument
290 …s" cannot be used as a macro name as it is a reserved keyword.', $name), $node->getTemplateLine(),…
293 $this->macros[$name] = $node;
330 public function addImportedSymbol($type, $alias, $name = null, AbstractExpression $node = null) argument
332 $this->importedSymbols[0][$type][$alias] = ['name' => $name, 'node' => $node];
393 protected function filterBodyNodes(\Twig_NodeInterface $node) argument
397 ($node instanceof TextNode && !ctype_space($node->getAttribute('data')))
399 …(!$node instanceof TextNode && !$node instanceof BlockReferenceNode && $node instanceof NodeOutput…
401 if (false !== strpos((string) $node, \chr(0xEF).\chr(0xBB).\chr(0xBF))) {
402 $t = substr($node->getAttribute('data'), 3);
409 …ig blocks. Did you forget to put the content inside a {% block %} tag?', $node->getTemplateLine(),…
413 if ($node instanceof NodeCaptureInterface) {
414 return $node;
417 if ($node instanceof NodeOutputInterface) {
421 foreach ($node as $k => $n) {
423 $node->removeNode($k);
427 return $node;