Home
last modified time | relevance | path

Searched refs:SyntaxError (Results 1 – 24 of 24) sorted by relevance

/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DExtendsTokenParser.php15 use Twig\Error\SyntaxError; alias
31 …throw new SyntaxError('Cannot use "extend" in a block.', $token->getLine(), $stream->getSourceCont…
33 …throw new SyntaxError('Cannot use "extend" in a macro.', $token->getLine(), $stream->getSourceCont…
37 …throw new SyntaxError('Multiple extends tags are forbidden.', $token->getLine(), $stream->getSourc…
H A DSetTokenParser.php14 use Twig\Error\SyntaxError; alias
43 …throw new SyntaxError('When using set, you must have the same number of variables and assignments.…
49 …throw new SyntaxError('When using set with a block, you cannot have a multi-target.', $stream->get…
H A DBlockTokenParser.php15 use Twig\Error\SyntaxError; alias
38 …throw new SyntaxError(sprintf("The block '%s' has already been defined line %d.", $name, $this->pa…
50 …throw new SyntaxError(sprintf('Expected endblock for block "%s" (but "%s" given).', $name, $value)…
H A DTokenParserInterface.php14 use Twig\Error\SyntaxError; alias
36 * @throws SyntaxError
H A DSandboxTokenParser.php14 use Twig\Error\SyntaxError; alias
46 …throw new SyntaxError('Only "include" tags are allowed within a "sandbox" section.', $node->getTem…
H A DAutoEscapeTokenParser.php14 use Twig\Error\SyntaxError; alias
34 …throw new SyntaxError('An escaping strategy must be a string or false.', $stream->getCurrent()->ge…
H A DUseTokenParser.php14 use Twig\Error\SyntaxError; alias
39 …throw new SyntaxError('The template references in a "use" statement must be a string.', $stream->g…
H A DForTokenParser.php15 use Twig\Error\SyntaxError; alias
94 …throw new SyntaxError('The "loop" variable cannot be used in a looping condition.', $node->getTemp…
113 …throw new SyntaxError(sprintf('The "loop.%s" variable is not defined when looping with a condition…
H A DMacroTokenParser.php14 use Twig\Error\SyntaxError; alias
44 …throw new SyntaxError(sprintf('Expected endmacro for macro "%s" (but "%s" given).', $name, $value)…
H A DIfTokenParser.php15 use Twig\Error\SyntaxError; alias
64 …throw new SyntaxError(sprintf('Unexpected end of template. Twig was looking for the following tags…
/template/twigstarter/vendor/twig/twig/src/
H A DExpressionParser.php15 use Twig\Error\SyntaxError; alias
266 …throw new SyntaxError(sprintf('Unexpected unary operator "%s".', $token->getValue()), $token->getL…
424 …throw new SyntaxError('Calling "parent" outside a block is forbidden.', $line, $this->parser->getS…
435 …throw new SyntaxError('The "block" function takes one argument (the block name).', $line, $this->p…
491 … throw new SyntaxError('Expected name or number.', $lineno, $stream->getSourceContext());
585 * @throws SyntaxError
613 …throw new SyntaxError(sprintf('A parameter name must be a string, "%s" given.', \get_class($value)…
661 …throw new SyntaxError(sprintf('You cannot assign a value to "%s".', $value), $token->getLine(), $s…
732 … $e = new SyntaxError(sprintf('Unknown "%s" test.', $name), $line, $stream->getSourceContext());
762 …$e = new SyntaxError(sprintf('Unknown "%s" function.', $name), $line, $this->parser->getStream()->…
[all …]
H A DTokenStream.php15 use Twig\Error\SyntaxError; alias
50 …throw new SyntaxError('Unexpected end of template.', $this->tokens[$this->current - 1]->getLine(),…
76 throw new SyntaxError(sprintf('%sUnexpected token "%s"%s ("%s" expected%s).',
96 …throw new SyntaxError('Unexpected end of template.', $this->tokens[$this->current + $number - 1]->…
H A DEnvironment.php20 use Twig\Error\SyntaxError; alias
313 * @throws SyntaxError When an error occurred during compilation
328 * @throws SyntaxError When an error occurred during compilation
343 * @throws SyntaxError When an error occurred during compilation
375 * @throws SyntaxError When an error occurred during compilation
444 * @throws SyntaxError When an error occurred during compilation
496 * @throws SyntaxError When an error occurred during compilation
534 * @throws SyntaxError When the code is syntactically wrong
555 * @throws SyntaxError When the token stream is syntactically or semantically wrong
590 * @throws SyntaxError When there was an error during tokenizing, parsing or compiling
[all …]
H A DLexer.php15 use Twig\Error\SyntaxError; alias
203 throw new SyntaxError(sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
303 …throw new SyntaxError(sprintf('Unclosed "%s".', self::STATE_BLOCK === $this->state ? 'block' : 'va…
340 …throw new SyntaxError(sprintf('Unexpected "%s".', $this->code[$this->cursor]), $this->lineno, $thi…
345 … throw new SyntaxError(sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
365 …throw new SyntaxError(sprintf('Unexpected character "%s".', $this->code[$this->cursor]), $this->li…
372 …throw new SyntaxError('Unexpected end of file: Unclosed "verbatim" block.', $this->lineno, $this->…
396 throw new SyntaxError('Unclosed comment.', $this->lineno, $this->source);
415 throw new SyntaxError(sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
422 …throw new SyntaxError(sprintf('Unexpected character "%s".', $this->code[$this->cursor]), $this->li…
H A DParser.php15 use Twig\Error\SyntaxError; alias
103 } catch (SyntaxError $e) {
152 …throw new SyntaxError('A block must start with a tag name.', $token->getLine(), $this->stream->get…
169 …$e = new SyntaxError(sprintf('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this-…
175 …$e = new SyntaxError(sprintf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->s…
192 …throw new SyntaxError('Lexer or parser ended up in unsupported state.', $this->getCurrentToken()->…
352 …throw new SyntaxError('A template that extends another one cannot include content outside Twig blo…
/template/twigstarter/vendor/twig/twig/lib/Twig/Error/
H A DSyntax.php3 use Twig\Error\SyntaxError; alias
11 class Twig_Error_Syntax extends SyntaxError
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DCallExpression.php15 use Twig\Error\SyntaxError; alias
128 …throw new SyntaxError(sprintf('Positional arguments cannot be used after named arguments for %s "%…
169 …throw new SyntaxError(sprintf('Argument "%s" is defined twice for %s "%s".', $name, $callType, $ca…
173 throw new SyntaxError(sprintf(
198 …throw new SyntaxError(sprintf('Value for argument "%s" is required for %s "%s".', $name, $callType…
228 throw new SyntaxError(
/template/twigstarter/vendor/twig/twig/src/Util/
H A DDeprecationCollector.php15 use Twig\Error\SyntaxError; alias
68 } catch (SyntaxError $e) {
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
H A DDefinedTest.php15 use Twig\Error\SyntaxError; alias
54 throw new SyntaxError('The "defined" test only works with simple variables.', $lineno);
/template/twigstarter/vendor/twig/twig/src/Node/
H A DMacroNode.php15 use Twig\Error\SyntaxError; alias
30 …throw new SyntaxError(sprintf('The argument "%s" in macro "%s" cannot be defined because the varia…
/template/twigstarter/vendor/twig/twig/src/Error/
H A DSyntaxError.php20 class SyntaxError extends Error class
/template/twigstarter/vendor/twig/twig/doc/
H A Ddeprecated.rst18 ``Twig\Error\SyntaxError`` exception. It does not work anyway, so most
37 anyway. In Twig 3.0, it will throw a ``Twig\Error\SyntaxError`` exception.
H A Drecipes.rst270 ``\Twig\Error\SyntaxError`` exception. However, it can also call a `callback`_ (any
309 } catch (\Twig\Error\SyntaxError $e) {
321 } catch (\Twig\Error\SyntaxError $e) {
H A Dapi.rst579 * ``\Twig\Error\SyntaxError``: Thrown to tell the user that there is a problem with