Lines Matching refs:line

107             $line = $stream->getCurrent()->getLine();
112 return new ArrowFunctionExpression($this->parseExpression(0), new Node($names), $line);
139 $line = $token->getLine();
153 return new ArrowFunctionExpression($this->parseExpression(0), new Node($names), $line);
418 public function getFunctionNode($name, $line) argument
424 …throw new SyntaxError('Calling "parent" outside a block is forbidden.', $line, $this->parser->getS…
428 …template that does not extend nor "use" another template is forbidden.', $line, $this->parser->get…
431 return new ParentExpression($this->parser->peekBlockStack(), $line);
435 …SyntaxError('The "block" function takes one argument (the block name).', $line, $this->parser->get…
438 …w BlockReferenceExpression($args->getNode(0), \count($args) > 1 ? $args->getNode(1) : null, $line);
442 …nction takes at least two arguments (the variable and the attributes).', $line, $this->parser->get…
445 …de(0), $args->getNode(1), \count($args) > 2 ? $args->getNode(2) : null, Template::ANY_CALL, $line);
448 $arguments = new ArrayExpression([], $line);
453 … $node = new MethodCallExpression($alias['node'], $alias['name'], $arguments, $line);
460 $class = $this->getFunctionNodeClass($name, $line);
462 return new $class($name, $args, $line);
712 private function getTest(int $line): array argument
732 … $e = new SyntaxError(sprintf('Unknown "%s" test.', $name), $line, $stream->getSourceContext());
759 private function getFunctionNodeClass(string $name, int $line): string argument
762 …$e = new SyntaxError(sprintf('Unknown "%s" function.', $name), $line, $this->parser->getStream()->…
777 $message .= sprintf(' in %s at line %d.', $src->getPath() ?: $src->getName(), $line);
785 private function getFilterNodeClass(string $name, int $line): string argument
788 …$e = new SyntaxError(sprintf('Unknown "%s" filter.', $name), $line, $this->parser->getStream()->ge…
803 $message .= sprintf(' in %s at line %d.', $src->getPath() ?: $src->getName(), $line);