23 $stream = $this->parser->getStream();
28 $variables = $this->parser->getExpressionParser()->parseExpression();
34 $body = $this->parser->subparse(
array($this,
'decideWithEnd'),
true);
43 return $token->
test(
'endwith');
52 class_alias(
'Twig_TokenParser_With',
'Twig\TokenParser\WithTokenParser',
false);
decideWithEnd(Twig_Token $token)
parse(Twig_Token $token)
Parses a token and returns a node.
test($type, $values=null)
Tests the current token for a type and/or a value.
$stream
PHP stream implementation.
Base class for all token parsers.
Create styles array
The data for the language used.
getTag()
Gets the tag name associated with this token parser.
Represents a nested "with" scope.