Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 32) sorted by last modified time

12

/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DIfTokenParser.php33 public function parse(Token $token) argument
35 $lineno = $token->getLine();
73 public function decideIfFork(Token $token) argument
75 return $token->test(['elseif', 'else', 'endif']);
78 public function decideIfEnd(Token $token) argument
80 return $token->test(['endif']);
H A DImportTokenParser.php25 public function parse(Token $token) argument
29 …ssion($this->parser->getStream()->expect(/* Token::NAME_TYPE */ 5)->getValue(), $token->getLine());
34 …return new ImportNode($macro, $var, $token->getLine(), $this->getTag(), $this->parser->isMainScope…
H A DSandboxTokenParser.php31 public function parse(Token $token) argument
51 return new SandboxNode($body, $token->getLine(), $this->getTag());
54 public function decideBlockEnd(Token $token) argument
56 return $token->test('endsandbox');
H A DWithTokenParser.php24 public function parse(Token $token) argument
41 return new WithNode($body, $variables, $only, $token->getLine(), $this->getTag());
44 public function decideWithEnd(Token $token) argument
46 return $token->test('endwith');
H A DApplyTokenParser.php29 public function parse(Token $token) argument
31 $lineno = $token->getLine();
49 public function decideApplyEnd(Token $token) argument
51 return $token->test('endapply');
H A DAutoEscapeTokenParser.php24 public function parse(Token $token) argument
26 $lineno = $token->getLine();
46 public function decideBlockEnd(Token $token) argument
48 return $token->test('endautoescape');
H A DBlockTokenParser.php32 public function parse(Token $token) argument
34 $lineno = $token->getLine();
46 if ($token = $stream->nextIf(/* Token::NAME_TYPE */ 5)) {
47 $value = $token->getValue();
67 public function decideBlockEnd(Token $token) argument
69 return $token->test('endblock');
H A DDoTokenParser.php22 public function parse(Token $token) argument
28 return new DoNode($expr, $token->getLine(), $this->getTag());
H A DEmbedTokenParser.php24 public function parse(Token $token) argument
32 …tToken = $fakeParentToken = new Token(/* Token::STRING_TYPE */ 7, '__parent__', $token->getLine());
34 …ntToken = new Token(/* Token::STRING_TYPE */ 7, $parent->getAttribute('value'), $token->getLine());
36 …arentToken = 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()),
58 …me(), $module->getAttribute('index'), $variables, $only, $ignoreMissing, $token->getLine(), $this-…
61 public function decideBlockEnd(Token $token) argument
63 return $token->test('endembed');
H A DFilterTokenParser.php31 public function parse(Token $token) argument
34 $lineno = $token->getLine();
53 public function decideBlockEnd(Token $token) argument
55 return $token->test('endfilter');
H A DForTokenParser.php36 public function parse(Token $token) argument
38 $lineno = $token->getLine();
80 public function decideForFork(Token $token) argument
82 return $token->test(['else', 'endfor']);
85 public function decideForEnd(Token $token) argument
87 return $token->test('endfor');
H A DTokenParserInterface.php38 public function parse(Token $token); argument
H A DUseTokenParser.php33 public function parse(Token $token) argument
H A DDeprecatedTokenParser.php29 public function parse(Token $token) argument
35 return new DeprecatedNode($expr, $token->getLine(), $this->getTag());
H A DFlushTokenParser.php24 public function parse(Token $token) argument
28 return new FlushNode($token->getLine(), $this->getTag());
H A DFromTokenParser.php25 public function parse(Token $token) argument
49 $var = new AssignNameExpression($this->parser->getVarName(), $token->getLine());
50 …$node = new ImportNode($macro, $var, $token->getLine(), $this->getTag(), $this->parser->isMainScop…
H A DIncludeTokenParser.php27 public function parse(Token $token) argument
33 …return new IncludeNode($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag(…
H A DMacroTokenParser.php29 public function parse(Token $token) argument
31 $lineno = $token->getLine();
40 if ($token = $stream->nextIf(/* Token::NAME_TYPE */ 5)) {
41 $value = $token->getValue();
55 public function decideBlockEnd(Token $token) argument
57 return $token->test('endmacro');
H A DSetTokenParser.php30 public function parse(Token $token) argument
32 $lineno = $token->getLine();
61 public function decideBlockEnd(Token $token) argument
63 return $token->test('endset');
H A DSpacelessTokenParser.php31 public function parse(Token $token) argument
34 $lineno = $token->getLine();
45 public function decideSpacelessEnd(Token $token) argument
47 return $token->test('endspaceless');
H A DExtendsTokenParser.php26 public function parse(Token $token) argument
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…
/template/twigstarter/vendor/twig/twig/src/
H A DParser.php135 $token = $this->stream->next();
136 $rv[] = new TextNode($token->getValue(), $token->getLine());
140 $token = $this->stream->next();
143 $rv[] = new PrintNode($expr, $token->getLine());
148 $token = $this->getCurrentToken();
154 if (null !== $test && $test($token)) {
166 if (!isset($this->handlers[$token->getValue()])) {
168 …$e = new SyntaxError(sprintf('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this-…
174 …$e = new SyntaxError(sprintf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->s…
183 $subparser = $this->handlers[$token->getValue()];
[all …]
H A DExpressionParser.php109 $names = [new AssignNameExpression($token->getValue(), $token->getLine())];
139 $line = $token->getLine();
144 $names[] = new AssignNameExpression($token->getValue(), $token->getLine());
237 $node = new NameExpression($token->getValue(), $token->getLine());
244 $node = new ConstantExpression($token->getValue(), $token->getLine());
256 $node = new NameExpression($token->getValue(), $token->getLine());
301 $nodes[] = new ConstantExpression($token->getValue(), $token->getLine());
370 $key = new ConstantExpression($token->getValue(), $token->getLine());
379 $key = new ConstantExpression($token->getValue(), $token->getLine());
403 if ('.' == $token->getValue() || '[' == $token->getValue()) {
[all …]
H A DTokenStream.php73 $token = $this->tokens[$this->current];
74 if (!$token->test($type, $value)) {
75 $line = $token->getLine();
78 Token::typeToEnglish($token->getType()),
79 $token->getValue() ? sprintf(' of value "%s"', $token->getValue()) : '',
87 return $token;
/template/strap/bootstrap/5.0.1/
H A Dbootstrap.min.js.map1token","tClass","state","popper","Popover","_getContent","method","ScrollSpy","_scrollElement","_o…

12