Searched refs:parsers (Results 1 – 6 of 6) sorted by relevance
39 public function __construct(array $parsers = []) argument41 $this->add($parsers);49 public function add(array $parsers): static argument51 foreach ($parsers as $parser) {93 foreach ($this->parsersByName as $parsers) {94 foreach ($parsers as $parser) {
162 $parsers = new \ReflectionProperty($this->parser, 'parsers');165 …return $parsers->getValue($this->parser)->getByClass(DotExpressionParser::class)->parse($this->par…168 …return $parsers->getValue($this->parser)->getByClass(SquareBracketExpressionParser::class)->parse(…190 $parsers = new \ReflectionProperty($this->parser, 'parsers');192 $op = $parsers->getValue($this->parser)->getByClass(FilterExpressionParser::class);
45 private $parsers; variable in Twig\\ExtensionSet320 return $this->parsers;329 if (isset($this->parsers[$name])) {330 return $this->parsers[$name];447 $this->parsers = [];497 $this->parsers[$parser->getTag()] = $parser;
60 private ExpressionParsers $parsers; variable in Twig\\Parser65 $this->parsers = $env->getExpressionParsers();385 …if ($token->test(Token::OPERATOR_TYPE) && $ep = $this->parsers->getByName(PrefixExpressionParserIn…390 … $expr = $this->parsers->getByClass(LiteralExpressionParser::class)->parse($this, $token);394 …while ($token->test(Token::OPERATOR_TYPE) && ($ep = $this->parsers->getByName(InfixExpressionParse…604 $precedenceChanges = $this->parsers->getPrecedenceChanges();
126 … v4 has been rewritten from scratch to make it easier than ever to build parsers and the language …
115 …* Add support for registering callbacks for undefined functions, filters or token parsers in the I…