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/
H A DError.php41 private $lineno; variable in Twig\\Error\\Error
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;
181 if ($this->lineno && $this->lineno >= 0) {
223 if (null === $template || $this->lineno > -1) {
[all …]
/template/twigstarter/vendor/twig/twig/src/
H A DLexer.php27 private $lineno; variable in Twig\\Lexer
161 $this->lineno = 1;
202 list($expect, $lineno) = array_pop($this->brackets);
258 $this->lineno = (int) $match[1];
262 $this->currentVarBlockLine = $this->lineno;
269 $this->currentVarBlockLine = $this->lineno;
343 list($expect, $lineno) = array_pop($this->brackets);
359 $this->brackets[] = ['"', $this->lineno];
413 list($expect, $lineno) = array_pop($this->brackets);
446 $this->tokens[] = new Token($type, $value, $this->lineno);
[all …]
H A 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/TokenParser/
H A 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());
H A 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()),
H A 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());
H A 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());
H A 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());
H A 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/Extension/
H A 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/
H A 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;
H A 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);
H A 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…
H A DFlushNode.php23 public function __construct(int $lineno, string $tag) argument
25 parent::__construct([], [], $lineno, $tag);
H A 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/
H A 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);
H A 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);
H A 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);
H A 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);
H A 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/
H A 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)
H A DConstantExpression.php19 public function __construct($value, int $lineno) argument
21 parent::__construct([], ['value' => $value], $lineno);
H A DTempNameExpression.php18 public function __construct(string $name, int $lineno) argument
20 parent::__construct([], ['name' => $name], $lineno);
H A DInlinePrint.php22 public function __construct(Node $node, $lineno) argument
24 parent::__construct(['node' => $node], [], $lineno);
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
H A 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