Home
last modified time | relevance | path

Searched refs:Token (Results 1 – 25 of 28) sorted by relevance

12

/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DEmbedTokenParser.php17 use Twig\Token; alias
24 public function parse(Token $token)
32 …$parentToken = $fakeParentToken = new Token(/* Token::STRING_TYPE */ 7, '__parent__', $token->getL…
34 …$parentToken = new Token(/* Token::STRING_TYPE */ 7, $parent->getAttribute('value'), $token->getLi…
36 …$parentToken = new Token(/* Token::NAME_TYPE */ 5, $parent->getAttribute('name'), $token->getLine(…
41 new Token(/* Token::BLOCK_START_TYPE */ 1, '', $token->getLine()),
42 new Token(/* Token::NAME_TYPE */ 5, 'extends', $token->getLine()),
44 new Token(/* Token::BLOCK_END_TYPE */ 3, '', $token->getLine()),
61 public function decideBlockEnd(Token $token)
H A DApplyTokenParser.php18 use Twig\Token; alias
29 public function parse(Token $token)
39 $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
41 $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
49 public function decideApplyEnd(Token $token)
H A DIfTokenParser.php18 use Twig\Token; alias
33 public function parse(Token $token)
73 public function decideIfFork(Token $token)
78 public function decideIfEnd(Token $token)
H A DDeprecatedTokenParser.php15 use Twig\Token; alias
29 public function parse(Token $token)
33 $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
H A DSpacelessTokenParser.php15 use Twig\Token; alias
31 public function parse(Token $token)
45 public function decideSpacelessEnd(Token $token)
H A DWithTokenParser.php15 use Twig\Token; alias
24 public function parse(Token $token)
44 public function decideWithEnd(Token $token)
H A DExtendsTokenParser.php17 use Twig\Token; alias
26 public function parse(Token $token)
41 $stream->expect(Token::BLOCK_END_TYPE);
H A DSandboxTokenParser.php18 use Twig\Token; alias
31 public function parse(Token $token)
54 public function decideBlockEnd(Token $token)
H A DAutoEscapeTokenParser.php17 use Twig\Token; alias
24 public function parse(Token $token)
46 public function decideBlockEnd(Token $token)
H A DSetTokenParser.php16 use Twig\Token; alias
30 public function parse(Token $token)
61 public function decideBlockEnd(Token $token)
H A DFilterTokenParser.php18 use Twig\Token; alias
31 public function parse(Token $token)
53 public function decideBlockEnd(Token $token)
H A DMacroTokenParser.php18 use Twig\Token; alias
29 public function parse(Token $token)
55 public function decideBlockEnd(Token $token)
H A DForTokenParser.php22 use Twig\Token; alias
36 public function parse(Token $token)
80 public function decideForFork(Token $token)
85 public function decideForEnd(Token $token)
H A DBlockTokenParser.php20 use Twig\Token; alias
32 public function parse(Token $token)
67 public function decideBlockEnd(Token $token)
H A DFlushTokenParser.php15 use Twig\Token; alias
24 public function parse(Token $token)
H A DTokenParserInterface.php17 use Twig\Token; alias
38 public function parse(Token $token);
H A DDoTokenParser.php15 use Twig\Token; alias
22 public function parse(Token $token)
H A DImportTokenParser.php16 use Twig\Token; alias
25 public function parse(Token $token)
H A DIncludeTokenParser.php16 use Twig\Token; alias
27 public function parse(Token $token)
H A DUseTokenParser.php17 use Twig\Token; alias
33 public function parse(Token $token)
H A DFromTokenParser.php16 use Twig\Token; alias
25 public function parse(Token $token)
/template/twigstarter/vendor/twig/twig/src/
H A DTokenStream.php47 public function next(): Token
59 * @return Token|null The next token if the condition is true, null otherwise
71 public function expect($type, $value = null, string $message = null): Token
78 Token::typeToEnglish($token->getType()),
80 Token::typeToEnglish($type), $value ? sprintf(' with value "%s"', $value) : ''),
93 public function look(int $number = 1): Token
118 public function getCurrent(): Token
H A DExpressionParser.php199 private function isUnary(Token $token): bool
204 private function isBinary(Token $token): bool
285 …throw new SyntaxError(sprintf('Unexpected token "%s" of value "%s".', Token::typeToEnglish($token-…
373 if ($stream->test(Token::PUNCTUATION_TYPE, [',', '}'])) {
385 …xpression enclosed in parentheses (unexpected token "%s" of value "%s".', Token::typeToEnglish($cu…
491 …Expected name or number, got value "%s" of type %s.', $token->getValue(), Token::typeToEnglish($to…
H A DToken.php20 final class Token class
/template/twigstarter/vendor/twig/twig/lib/Twig/
H A DToken.php3 use Twig\Token; alias
11 class Twig_Token extends Token

12