Home
last modified time | relevance | path

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

123

/template/twigstarter/vendor/twig/twig/src/Error/
DError.php38 private $lineno; variable in Twig\\Error\\Error
50 * @param int $lineno The template line where the error occurred
53 …public function __construct(string $message, int $lineno = -1, ?Source $source = null, ?\Throwable… argument
59 $this->lineno = $lineno;
72 return $this->lineno;
75 public function setTemplateLine(int $lineno): void argument
77 $this->lineno = $lineno;
94 if ($this->lineno > -1) {
113 if ($this->lineno > 0) {
114 $this->line = $this->lineno;
[all …]
/template/twigstarter/vendor/twig/twig/src/Extension/
DSandboxExtension.php96 … public function checkMethodAllowed($obj, $method, int $lineno = -1, ?Source $source = null): void argument
103 $e->setTemplateLine($lineno);
110 …public function checkPropertyAllowed($obj, $property, int $lineno = -1, ?Source $source = null): v… argument
117 $e->setTemplateLine($lineno);
127 public function ensureToStringAllowed($obj, int $lineno = -1, ?Source $source = null) argument
129 return $this->doEnsureToStringAllowed($obj, $lineno, $source, new \SplObjectStorage());
139 …public function ensureSpreadAllowed(iterable $obj, int $lineno = -1, ?Source $source = null): array argument
147 $this->ensureToStringAllowedForArray($obj, $lineno, $source, $seen);
152 …private function doEnsureToStringAllowed($obj, int $lineno, ?Source $source, \SplObjectStorage $se… argument
155 $this->ensureToStringAllowedForArray($obj, $lineno, $source, $seen);
[all …]
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DApplyTokenParser.php35 $lineno = $token->getLine();
36 $ref = new LocalVariable(null, $lineno);
52 new SetNode(true, $ref, $body, $lineno),
53 new PrintNode($filter, $lineno),
54 ], $lineno);
DBlockTokenParser.php38 $lineno = $token->getLine();
41 $this->parser->setBlock($name, $block = new BlockNode($name, new EmptyNode(), $lineno));
56 new PrintNode($this->parser->parseExpression(), $lineno),
65 return new BlockReferenceNode($name, $lineno);
DIfTokenParser.php38 $lineno = $token->getLine();
67 …e", "elseif", or "endif" to close the "if" block started at line %d).', $lineno), $stream->getCurr…
73 return new IfNode(new Nodes($tests), $else, $lineno);
/template/twigstarter/vendor/twig/twig/src/
DLexer.php28 private $lineno; variable in Twig\\Lexer
192 $this->lineno = 1;
233 [$expect, $lineno] = array_pop($this->brackets);
234 throw new SyntaxError(\sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
289 $this->lineno = (int) $match[1];
293 $this->currentVarBlockLine = $this->lineno;
300 $this->currentVarBlockLine = $this->lineno;
370 $this->brackets[] = ['"', $this->lineno];
380 …(\sprintf('Unexpected character "%s".', $this->code[$this->cursor]), $this->lineno, $this->source);
412 …r at position %d in "%s" at line %d.', $nextChar, $i + 1, $this->source->getName(), $this->lineno);
[all …]
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
DAssignNameExpression.php22 public function __construct(string $name, int $lineno) argument
30 throw new SyntaxError(\sprintf('You cannot assign a value to "%s".', $name), $lineno);
33 parent::__construct($name, $lineno);
DTempNameExpression.php21 public function __construct(string|int|null $name, int $lineno) argument
25 throw new SyntaxError(\sprintf('You cannot assign a value to "%s".', $name), $lineno);
38 parent::__construct([], ['name' => $name], $lineno);
DArrowFunctionExpression.php27 public function __construct(AbstractExpression $expr, Node $names, $lineno) argument
30 …ion([new AssignContextVariable($names->getAttribute('name'), $names->getTemplateLine())], $lineno);
37 parent::__construct(['expr' => $expr, 'names' => $names], [], $lineno);
DEmptyExpression.php25 public function __construct(int $lineno) argument
27 parent::__construct([], [], $lineno);
DConstantExpression.php24 public function __construct($value, int $lineno) argument
26 parent::__construct([], ['value' => $value], $lineno);
DInlinePrint.php25 public function __construct(Node $node, int $lineno) argument
29 parent::__construct(['node' => $node], [], $lineno);
/template/twigstarter/vendor/twig/twig/src/Node/
DEmbedNode.php28 …ng $name, int $index, ?AbstractExpression $variables, bool $only, bool $ignoreMissing, int $lineno) argument
30 …t::__construct(new ConstantExpression('not_used', $lineno), $variables, $only, $ignoreMissing, $li…
DImportNode.php28 … __construct(AbstractExpression $expr, AbstractExpression|AssignTemplateVariable $var, int $lineno) argument
37 $var = new AssignTemplateVariable($var->getAttribute('name'), $lineno);
40 parent::__construct(['expr' => $expr, 'var' => $var], [], $lineno);
DNodes.php24 public function __construct(array $nodes = [], int $lineno = 0) argument
26 parent::__construct($nodes, [], $lineno);
DEmptyNode.php24 public function __construct(int $lineno = 0) argument
26 parent::__construct([], [], $lineno);
DTypesNode.php28 public function __construct(array $types, int $lineno) argument
30 parent::__construct([], ['mapping' => $types], $lineno);
DAutoEscapeNode.php31 public function __construct($value, Node $body, int $lineno) argument
33 parent::__construct(['body' => $body], ['value' => $value], $lineno);
DFlushNode.php25 public function __construct(int $lineno) argument
27 parent::__construct([], [], $lineno);
DNode.php34 protected $lineno; variable in Twig\\Node\\Node
46 * @param int $lineno The line number
48 public function __construct(array $nodes = [], array $attributes = [], int $lineno = 0) argument
61 $this->lineno = $lineno;
127 return $this->lineno;
DBlockReferenceNode.php26 public function __construct(string $name, int $lineno) argument
28 parent::__construct([], ['name' => $name], $lineno);
DForElseNode.php25 public function __construct(Node $body, int $lineno) argument
27 parent::__construct(['body' => $body], [], $lineno);
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
DDefinedTest.php39 public function __construct(Node $node, TwigTest|string $name, ?Node $arguments, int $lineno) argument
46 throw new SyntaxError('The "defined" test only works with simple variables.', $lineno);
55 parent::__construct($node, $name, $arguments, $lineno);
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Binary/
DMatchesBinary.php24 public function __construct(Node $left, Node $right, int $lineno) argument
35 …(\sprintf('Regexp "%s" passed to "matches" is not valid: %s.', $regexp, substr($m, 14)), $lineno));
43 parent::__construct($left, $right, $lineno);
DSequenceDestructuringSetBinary.php33 public function __construct(Node $left, Node $right, int $lineno) argument
41 …"%s", only variables can be assigned in sequence destructuring.', $pair['value']::class), $lineno);
45 parent::__construct($left, $right, $lineno);

123