| /template/twigstarter/vendor/twig/twig/src/ExpressionParser/Prefix/ |
| D | LiteralExpressionParser.php | 33 public function parse(Parser $parser, Token $token): AbstractExpression argument 37 case $token->test(Token::NAME_TYPE): 39 switch ($token->getValue()) { 42 return new ConstantExpression(true, $token->getLine()); 46 return new ConstantExpression(false, $token->getLine()); 52 return new ConstantExpression(null, $token->getLine()); 55 return new ContextVariable($token->getValue(), $token->getLine()); 59 case $token->test(Token::NUMBER_TYPE): 62 return new ConstantExpression($token->getValue(), $token->getLine()); 64 case $token->test(Token::STRING_TYPE): [all …]
|
| D | GroupingExpressionParser.php | 30 public function parse(Parser $parser, Token $token): AbstractExpression argument 40 return new ListExpression([self::toAssignContextVariable($expr)], $token->getLine()); 54 $token = $stream->expect(Token::NAME_TYPE); 55 $names[] = new ContextVariable($token->getValue(), $token->getLine()); 62 …return new ListExpression(array_map(self::toAssignContextVariable(...), $names), $token->getLine()…
|
| /template/strap/vendor/carica/phpcss/src/PhpCss/Parser/ |
| H A D | Sequence.php | 33 $token = $this->lookahead( 44 while (isset($token)) { 45 if ($selector = $this->createSelector($token)) { 46 $this->read($token->type); 49 switch ($token->type) { 57 $sequence->simples[] = $this->createPseudoElement($token); 58 $this->read($token->type); 61 $this->read($token->type); 66 $this->read($token->type); 72 $token, $subSequence [all …]
|
| H A D | Attribute.php | 37 $token = $this->read(Scanner\Token::IDENTIFIER); 38 $attribute = new Ast\Selector\Simple\Attribute($token->content); 39 $token = $this->read( 45 if ($token->type === Scanner\Token::ATTRIBUTE_OPERATOR) { 46 $attribute->match = $this->_operators[$token->content]; 47 $token = $this->read( 55 switch ($token->type) { 58 $attribute->literal = new Ast\Value\Literal($token->content);
|
| H A D | PseudoClass.php | 36 $token = $this->read(Scanner\Token::PSEUDO_CLASS); 37 $name = substr($token->content, 1); 124 throw new PhpCss\Exception\UnknownPseudoClassException($token); 168 private function createSelector(Scanner\Token $token) { argument 169 switch ($token->type) { 171 if (FALSE !== strpos($token->content, '|')) { 172 [$prefix, $name] = explode('|', $token->content); 175 $name = $token->content; 182 return new Ast\Selector\Simple\Id(substr($token->content, 1)); 184 return new Ast\Selector\Simple\ClassName(substr($token->content, 1)); [all …]
|
| /template/twigstarter/vendor/twig/twig/src/ExpressionParser/Infix/ |
| D | DotExpressionParser.php | 38 … public function parse(Parser $parser, AbstractExpression $expr, Token $token): AbstractExpression argument 40 $nullSafe = '?.' === $token->getValue(); 42 $token = $stream->getCurrent(); 43 $lineno = $token->getLine(); 51 $token = $stream->next(); 53 $token->test(Token::NAME_TYPE) 54 || $token->test(Token::NUMBER_TYPE) 55 … || ($token->test(Token::OPERATOR_TYPE) && preg_match(Lexer::REGEX_NAME, $token->getValue())) 57 $attribute = new ConstantExpression($token->getValue(), $token->getLine()); 59 …cted name or number, got value "%s" of type "%s".', $token->getValue(), $token->toEnglish()), $tok… [all …]
|
| D | SquareBracketExpressionParser.php | 32 … public function parse(Parser $parser, AbstractExpression $expr, Token $token): AbstractExpression argument 35 $lineno = $token->getLine(); 42 $attribute = new ConstantExpression(0, $token->getLine()); 53 $length = new ConstantExpression(null, $token->getLine()); 58 $filter = $parser->getFilter('slice', $token->getLine()); 60 $filter = new ($filter->getNodeClass())($expr, $filter, $arguments, $token->getLine());
|
| /template/strap/vendor/antlr/antlr4-php-runtime/src/ |
| H A D | CommonTokenFactory.php | 70 $token = new CommonToken($type, $source, $channel, $start, $stop); 72 $token->setLine($line); 73 $token->setCharPositionInLine($column); 76 $token->setText($text); 82 $token->setText($source->b->getText($start, $stop)); 85 return $token; 90 $token = new CommonToken($type); 92 $token->setText($text); 94 return $token;
|
| H A D | Lexer.php | 50 public $token; variable in Antlr\\Antlr4\\Runtime\\Lexer 133 $this->token = null; 168 return $this->token; 175 $this->token = null; 216 if ($this->token === null) { 220 return $this->token; 310 public function emitToken(Token $token) : void argument 312 $this->token = $token; 324 $token = $this->factory->createEx( 335 $this->emitToken($token); [all …]
|
| H A D | ParserTraceListener.php | 24 $token = $stream !== null ? $stream->LT(1) : null; 29 $token === null? '' : $token->getText() ?? '' 45 $token = $stream !== null ? $stream->LT(1) : null; 50 $token === null? '' : $token->getText() ?? ''
|
| /template/twigstarter/vendor/twig/twig/src/TokenParser/ |
| D | EmbedTokenParser.php | 27 public function parse(Token $token): Node argument 35 … $parentToken = $fakeParentToken = new Token(Token::STRING_TYPE, '__parent__', $token->getLine()); 37 … $parentToken = new Token(Token::STRING_TYPE, $parent->getAttribute('value'), $token->getLine()); 39 … $parentToken = new Token(Token::NAME_TYPE, $parent->getAttribute('name'), $token->getLine()); 44 new Token(Token::BLOCK_START_TYPE, '', $token->getLine()), 45 new Token(Token::NAME_TYPE, 'extends', $token->getLine()), 47 new Token(Token::BLOCK_END_TYPE, '', $token->getLine()), 61 …plateName(), $module->getAttribute('index'), $variables, $only, $ignoreMissing, $token->getLine()); 64 public function decideBlockEnd(Token $token): bool argument 66 return $token->test('endembed');
|
| D | MacroTokenParser.php | 37 public function parse(Token $token): Node argument 39 $lineno = $token->getLine(); 47 if ($token = $stream->nextIf(Token::NAME_TYPE)) { 48 $value = $token->getValue(); 62 public function decideBlockEnd(Token $token): bool argument 64 return $token->test('endmacro'); 87 $token = $stream->expect(Token::NAME_TYPE, null, 'An argument must be a name'); 88 … $name = new LocalVariable($token->getValue(), $this->parser->getCurrentToken()->getLine()); 89 if ($token = $stream->nextIf(Token::OPERATOR_TYPE, '=')) { 97 … a constant (a boolean, a string, a number, a sequence, or a mapping).', $token->getLine(), $strea…
|
| D | IfTokenParser.php | 36 public function parse(Token $token): Node argument 38 $lineno = $token->getLine(); 76 public function decideIfFork(Token $token): bool argument 78 return $token->test(['elseif', 'else', 'endif']); 81 public function decideIfEnd(Token $token): bool argument 83 return $token->test(['endif']);
|
| D | BlockTokenParser.php | 36 public function parse(Token $token): Node argument 38 $lineno = $token->getLine(); 47 if ($token = $stream->nextIf(Token::NAME_TYPE)) { 48 $value = $token->getValue(); 68 public function decideBlockEnd(Token $token): bool argument 70 return $token->test('endblock');
|
| D | ForTokenParser.php | 34 public function parse(Token $token): Node argument 36 $lineno = $token->getLine(); 66 public function decideForFork(Token $token): bool argument 68 return $token->test(['else', 'endfor']); 71 public function decideForEnd(Token $token): bool argument 73 return $token->test('endfor');
|
| D | SandboxTokenParser.php | 34 public function parse(Token $token): Node argument 37 …ag is deprecated in "%s" at line %d.', $stream->getSourceContext()->getName(), $token->getLine())); 60 return new SandboxNode($body, $token->getLine()); 63 public function decideBlockEnd(Token $token): bool argument 65 return $token->test('endsandbox');
|
| /template/strap/vendor/salesforce/handlebars-php/src/Handlebars/ |
| H A D | Parser.php | 53 $token = $tokens->current(); 56 if ($token === null) { 59 switch ($token[Tokenizer::TYPE]) { 66 'Unexpected closing tag: /' . $token[Tokenizer::NAME] 72 && $result[Tokenizer::NAME] == $token[Tokenizer::NAME] 75 $result[Tokenizer::END] = $token[Tokenizer::INDEX]; 84 array_push($stack, $token);
|
| /template/strap/vendor/carica/phpcss/src/PhpCss/ |
| H A D | Scanner.php | 58 while ($token = $this->_next()) { 59 $target[] = $token; 61 if ($this->_status->isEndToken($token)) { 65 if ($newStatus = $this->_status->getNewStatus($token)) { 89 if (($token = $this->_status->getToken($this->_buffer, $this->_offset)) && 90 $token->length > 0) { 91 $this->_offset += $token->length; 92 return $token;
|
| /template/strap/vendor/carica/phpcss/src/PhpCss/Scanner/Status/Selector/ |
| H A D | Attribute.php | 47 if ($token = $this->matchCharacters($buffer, $offset, $this->_tokenChars)) { 48 return $token; 50 if ($token = $this->matchPatterns($buffer, $offset, $this->_tokenPatterns)) { 51 return $token; 62 public function isEndToken(Scanner\Token $token): bool { argument 63 return $token->type === Scanner\Token::ATTRIBUTE_SELECTOR_END; 72 public function getNewStatus(Scanner\Token $token): ?Scanner\Status { argument 73 switch ($token->type) {
|
| /template/strap/vendor/carica/phpcss/src/PhpCss/Exception/ |
| H A D | UnknownPseudoElementException.php | 20 public function __construct(PhpCss\Scanner\Token $token) { argument 21 $this->_encounteredToken = $token; 23 $token, 26 $token->content, 27 $token->position
|
| H A D | UnknownPseudoClassException.php | 21 public function __construct(PhpCss\Scanner\Token $token) { argument 23 $token, 26 $token->content, 27 $token->position
|
| /template/twigstarter/vendor/twig/twig/src/ |
| D | ExpressionParser.php | 138 $token = $this->parser->getCurrentToken(); 139 if ($token->test(Token::PUNCTUATION_TYPE)) { 140 if ('.' == $token->getValue() || '[' == $token->getValue()) { 142 } elseif ('|' == $token->getValue()) { 245 $token = $stream->expect(Token::NAME_TYPE, null, 'An argument must be a name'); 246 … $value = new ContextVariable($token->getValue(), $this->parser->getCurrentToken()->getLine()); 259 …if ($namedArguments && (($token = $stream->nextIf(Token::OPERATOR_TYPE, '=')) || (!$definition && … 261 …printf('A parameter name must be a string, "%s" given.', $value::class), $token->getLine(), $strea… 269 … a constant (a boolean, a string, a number, a sequence, or a mapping).', $token->getLine(), $strea… 306 $token = $this->parser->getCurrentToken(); [all …]
|
| D | TokenStream.php | 77 $token = $this->tokens[$this->current]; 78 if (!$token->test($type, $value)) { 79 $line = $token->getLine(); 82 $token->toEnglish(), 83 $token->getValue() ? \sprintf(' of value "%s"', $token->getValue()) : '', 91 return $token;
|
| D | Parser.php | 180 $token = $this->stream->next(); 181 $rv[] = new TextNode($token->getValue(), $token->getLine()); 185 $token = $this->stream->next(); 188 $rv[] = new PrintNode($expr, $token->getLine()); 193 $token = $this->getCurrentToken(); 195 if (!$token->test(Token::NAME_TYPE)) { 196 …throw new SyntaxError('A block must start with a tag name.', $token->getLine(), $this->stream->get… 199 if (null !== $test && $test($token)) { 211 if (!$subparser = $this->env->getTokenParser($token->getValue())) { 213 …$e = new SyntaxError(\sprintf('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this… [all …]
|
| /template/strap/vendor/carica/phpcss/src/PhpCss/Scanner/Status/ |
| H A D | Selector.php | 55 if ($token = $this->matchCharacters($buffer, $offset, $this->_tokenChars)) { 56 return $token; 58 if ($token = $this->matchPatterns($buffer, $offset, $this->_tokenPatterns)) { 59 return $token; 70 public function isEndToken(Scanner\Token $token): bool { argument 80 public function getNewStatus(Scanner\Token $token): ?Scanner\Status { argument 81 switch ($token->type) {
|