Home
last modified time | relevance | path

Searched refs:lineno (Results 1 – 25 of 60) sorted by relevance

123

/template/twigstarter/vendor/twig/twig/src/Error/
DError.php41 private $lineno; variable in Twig\\Error\\Error
54 * @param int $lineno The template line where the error occurred
58 …public function __construct(string $message, int $lineno = -1, $source = null, \Exception $previou… argument
73 $this->lineno = $lineno;
96 return $this->lineno;
102 * @param int $lineno The template line
104 public function setTemplateLine($lineno) argument
106 $this->lineno = $lineno;
153 if ($this->sourcePath && $this->lineno > 0) {
155 $this->line = $this->lineno;
[all …]
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DFilterTokenParser.php34 $lineno = $token->getLine();
36 … use the "apply" tag instead.', $stream->getSourceContext()->getName(), $lineno), \E_USER_DEPRECAT…
39 …$ref = new BlockReferenceExpression(new ConstantExpression($name, $lineno), null, $lineno, $this->…
47 $block = new BlockNode($name, $body, $lineno);
50 return new PrintNode($filter, $lineno, $this->getTag());
DApplyTokenParser.php31 $lineno = $token->getLine();
34 $ref = new TempNameExpression($name, $lineno);
44 new SetNode(true, $ref, $body, $lineno, $this->getTag()),
45 new PrintNode($filter, $lineno, $this->getTag()),
DBlockTokenParser.php34 $lineno = $token->getLine();
40 $this->parser->setBlock($name, $block = new BlockNode($name, new Node([]), $lineno));
55 new PrintNode($this->parser->getExpressionParser()->parseExpression(), $lineno),
64 return new BlockReferenceNode($name, $lineno, $this->getTag());
DSpacelessTokenParser.php34 $lineno = $token->getLine();
36 …with the "apply" tag instead.', $stream->getSourceContext()->getName(), $lineno), \E_USER_DEPRECAT…
42 return new SpacelessNode($body, $lineno, $this->getTag());
DIfTokenParser.php35 $lineno = $token->getLine();
64 …e", "elseif", or "endif" to close the "if" block started at line %d).', $lineno), $stream->getCurr…
70 return new IfNode(new Node($tests), $else, $lineno, $this->getTag());
DForTokenParser.php38 $lineno = $token->getLine();
46 …ble updated inside the loop).', $stream->getSourceContext()->getName(), $lineno), \E_USER_DEPRECAT…
67 $keyTarget = new AssignNameExpression('_key', $lineno);
77 …return new ForNode($keyTarget, $valueTarget, $seq, $ifexpr, $body, $else, $lineno, $this->getTag()…
/template/twigstarter/vendor/twig/twig/src/
DLexer.php27 private $lineno; variable in Twig\\Lexer
161 $this->lineno = 1;
202 list($expect, $lineno) = array_pop($this->brackets);
203 throw new SyntaxError(sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
258 $this->lineno = (int) $match[1];
262 $this->currentVarBlockLine = $this->lineno;
269 $this->currentVarBlockLine = $this->lineno;
335 $this->brackets[] = [$this->code[$this->cursor], $this->lineno];
340 …SyntaxError(sprintf('Unexpected "%s".', $this->code[$this->cursor]), $this->lineno, $this->source);
343 list($expect, $lineno) = array_pop($this->brackets);
[all …]
DToken.php24 private $lineno; variable in Twig\\Token
44 * @param int $lineno The line position in the source
46 public function __construct($type, $value, $lineno) argument
50 $this->lineno = $lineno;
90 return $this->lineno;
/template/twigstarter/vendor/twig/twig/src/Extension/
DSandboxExtension.php80 public function checkMethodAllowed($obj, $method, int $lineno = -1, Source $source = null) argument
87 $e->setTemplateLine($lineno);
94 public function checkPropertyAllowed($obj, $property, int $lineno = -1, Source $source = null) argument
101 $e->setTemplateLine($lineno);
108 public function ensureToStringAllowed($obj, int $lineno = -1, Source $source = null) argument
115 $e->setTemplateLine($lineno);
/template/twigstarter/vendor/twig/twig/src/Node/
DNode.php27 protected $lineno; variable in Twig\\Node\\Node
36 * @param int $lineno The line number
39 …public function __construct(array $nodes = [], array $attributes = [], int $lineno = 0, string $ta… argument
48 $this->lineno = $lineno;
89 return $this->lineno;
DEmbedNode.php26 …x, ?AbstractExpression $variables, bool $only, bool $ignoreMissing, int $lineno, string $tag = nul… argument
28 …t::__construct(new ConstantExpression('not_used', $lineno), $variables, $only, $ignoreMissing, $li…
DForNode.php28 …ression $seq, ?AbstractExpression $ifexpr, Node $body, ?Node $else, int $lineno, string $tag = nul… argument
30 $body = new Node([$body, $this->loop = new ForLoopNode($lineno, $tag)]);
33 $body = new IfNode(new Node([$ifexpr, $body]), null, $lineno, $tag);
41 … parent::__construct($nodes, ['with_loop' => true, 'ifexpr' => null !== $ifexpr], $lineno, $tag);
DFlushNode.php23 public function __construct(int $lineno, string $tag) argument
25 parent::__construct([], [], $lineno, $tag);
DAutoEscapeNode.php29 public function __construct($value, Node $body, int $lineno, string $tag = 'autoescape') argument
31 parent::__construct(['body' => $body], ['value' => $value], $lineno, $tag);
/template/twigstarter/vendor/twig/twig/src/Sandbox/
DSecurityNotAllowedTagError.php25 …public function __construct(string $message, string $tagName, int $lineno = -1, string $filename =… argument
27 if (-1 !== $lineno) {
36 parent::__construct($message, $lineno, $filename, $previous);
DSecurityNotAllowedFilterError.php25 …public function __construct(string $message, string $functionName, int $lineno = -1, string $filen… argument
27 if (-1 !== $lineno) {
36 parent::__construct($message, $lineno, $filename, $previous);
DSecurityNotAllowedFunctionError.php25 …public function __construct(string $message, string $functionName, int $lineno = -1, string $filen… argument
27 if (-1 !== $lineno) {
36 parent::__construct($message, $lineno, $filename, $previous);
DSecurityNotAllowedMethodError.php26 …public function __construct(string $message, string $className, string $methodName, int $lineno = … argument
28 if (-1 !== $lineno) {
37 parent::__construct($message, $lineno, $filename, $previous);
DSecurityNotAllowedPropertyError.php26 …construct(string $message, string $className, string $propertyName, int $lineno = -1, string $file… argument
28 if (-1 !== $lineno) {
37 parent::__construct($message, $lineno, $filename, $previous);
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
DNameExpression.php25 public function __construct(string $name, int $lineno) argument
27 …, 'is_defined_test' => false, 'ignore_strict_check' => false, 'always_defined' => false], $lineno);
80 ->repr($this->lineno)
DConstantExpression.php19 public function __construct($value, int $lineno) argument
21 parent::__construct([], ['value' => $value], $lineno);
DTempNameExpression.php18 public function __construct(string $name, int $lineno) argument
20 parent::__construct([], ['name' => $name], $lineno);
DInlinePrint.php22 public function __construct(Node $node, $lineno) argument
24 parent::__construct(['node' => $node], [], $lineno);
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
DDefinedTest.php38 public function __construct(Node $node, string $name, ?Node $arguments, int $lineno) argument
54 throw new SyntaxError('The "defined" test only works with simple variables.', $lineno);
57 parent::__construct($node, $name, $arguments, $lineno);

123