Lines Matching refs:node

114 …$node = new ModuleNode(new BodyNode([$body]), $this->parent, new Node($this->blocks), new Node($th…
118 $node = $traverser->traverse($node);
125 return $node;
184 $node = $subparser->parse($token);
185 if (null !== $node) {
186 $rv[] = $node;
242 public function setMacro($name, MacroNode $node) argument
244 $this->macros[$name] = $node;
274 public function addImportedSymbol($type, $alias, $name = null, AbstractExpression $node = null) argument
276 $this->importedSymbols[0][$type][$alias] = ['name' => $name, 'node' => $node];
334 private function filterBodyNodes(Node $node, bool $nested = false) argument
338 ($node instanceof TextNode && !ctype_space($node->getAttribute('data')))
341 …(!$node instanceof TextNode && !$node instanceof BlockReferenceNode && ($node instanceof NodeOutpu…
343 if (false !== strpos((string) $node, \chr(0xEF).\chr(0xBB).\chr(0xBF))) {
344 $t = substr($node->getAttribute('data'), 3);
351 …ig blocks. Did you forget to put the content inside a {% block %} tag?', $node->getTemplateLine(),…
355 if ($node instanceof NodeCaptureInterface) {
357 return $node;
361 if (!$nested && $node instanceof SpacelessNode) {
362 …e a syntax error in 3.0.', $this->stream->getSourceContext()->getName(), $node->getTemplateLine())…
368 …if ($nested && ($node instanceof BlockReferenceNode || $node instanceof \Twig_Node_BlockReference)…
370 …e a syntax error in 3.0.', $this->stream->getSourceContext()->getName(), $node->getTemplateLine())…
376 if ($node instanceof NodeOutputInterface && !$node instanceof SpacelessNode) {
382 … $nested = $nested || ('Twig_Node' !== \get_class($node) && Node::class !== \get_class($node));
383 foreach ($node as $k => $n) {
385 $node->removeNode($k);
389 return $node;