Home
last modified time | relevance | path

Searched refs:lineno (Results 1 – 25 of 60) sorted by last modified time

123

/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 DParser.php130 $lineno = $this->getCurrentToken()->getLine();
163 return new Node($rv, [], $lineno);
171 …f(' (expecting closing tag for the "%s" tag defined near line %s).', $test[0]->getTag(), $lineno));
199 return new Node($rv, [], $lineno);
H A DExpressionParser.php470 $lineno = $token->getLine();
471 $arguments = new ArrayExpression([], $lineno);
482 $arg = new ConstantExpression($token->getValue(), $lineno);
491 …ype %s.', $token->getValue(), Token::typeToEnglish($token->getType())), $lineno, $stream->getSourc…
501 $node = new MethodCallExpression($node, 'macro_'.$name, $arguments, $lineno);
541 return new GetAttrExpression($node, $arg, $arguments, $type, $lineno);
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/Node/Expression/
H A DArrowFunctionExpression.php24 public function __construct(AbstractExpression $expr, Node $names, $lineno, $tag = null) argument
26 parent::__construct(['expr' => $expr, 'names' => $names], [], $lineno, $tag);
H A DArrayExpression.php20 public function __construct(array $elements, int $lineno) argument
22 parent::__construct($elements, [], $lineno);
H A DBlockReferenceExpression.php25 public function __construct(Node $name, ?Node $template, int $lineno, string $tag = null) argument
32 parent::__construct($nodes, ['is_defined_test' => false, 'output' => false], $lineno, $tag);
H A DInlinePrint.php22 public function __construct(Node $node, $lineno) argument
24 parent::__construct(['node' => $node], [], $lineno);
/template/twigstarter/vendor/twig/twig/src/TokenParser/
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 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 DAutoEscapeTokenParser.php26 $lineno = $token->getLine();
43 return new AutoEscapeNode($value, $body, $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 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 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/Node/
H A DSandboxNode.php23 public function __construct(Node $body, int $lineno, string $tag = null) argument
25 parent::__construct(['body' => $body], [], $lineno, $tag);
H A DSetNode.php24 …public function __construct(bool $capture, Node $names, Node $values, int $lineno, string $tag = n… argument
26 …['names' => $names, 'values' => $values], ['capture' => $capture, 'safe' => false], $lineno, $tag);
H A DSpacelessNode.php27 public function __construct(Node $body, int $lineno, string $tag = 'spaceless') argument
29 parent::__construct(['body' => $body], [], $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);
H A DDeprecatedNode.php25 public function __construct(AbstractExpression $expr, int $lineno, string $tag = null) argument
27 parent::__construct(['expr' => $expr], [], $lineno, $tag);
H A DDoNode.php24 public function __construct(AbstractExpression $expr, int $lineno, string $tag = null) argument
26 parent::__construct(['expr' => $expr], [], $lineno, $tag);
H A DForLoopNode.php23 public function __construct(int $lineno, string $tag = null) argument
25 …parent::__construct([], ['with_loop' => false, 'ifexpr' => false, 'else' => false], $lineno, $tag);
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);
/template/twigstarter/vendor/twig/twig/src/Extension/
H A DCoreExtension.php1156 function twig_call_macro(Template $template, string $method, array $args, int $lineno, array $conte… argument
1166 …plate "%s".', substr($method, \strlen('macro_')), $template->getTemplateName()), $lineno, $source);
1392 * @param int $lineno The template line where the attribute was called
1400 …*/ 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) argument
1447 throw new RuntimeError($message, $lineno, $source);
1468 throw new RuntimeError($message, $lineno, $source);
1472 … throw new RuntimeError('Accessing \Twig\Template attributes is forbidden.', $lineno, $source);
1483 …env->getExtension(SandboxExtension::class)->checkPropertyAllowed($object, $item, $lineno, $source);
1552 …)" or "__call()" exist and have public access in class "%2$s".', $item, $class), $lineno, $source);
1560 …$env->getExtension(SandboxExtension::class)->checkMethodAllowed($object, $method, $lineno, $source…
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/Expression/Filter/
H A DDefaultFilter.php32 …struct(Node $node, ConstantExpression $filterName, Node $arguments, int $lineno, string $tag = nul… argument
45 parent::__construct($node, $filterName, $arguments, $lineno, $tag);

123