Searched refs:expectedTokens (Results 1 – 5 of 5) sorted by relevance
79 * @param array|integer|string $expectedTokens83 protected function read($expectedTokens): Scanner\Token { argument85 if (!is_array($expectedTokens)) {86 return $this->read(array($expectedTokens));89 foreach($expectedTokens as $token) {96 throw $this->handleMismatch($expectedTokens);122 * @param array|integer|string $expectedTokens129 $expectedTokens, int $position = 0, bool $allowEndOfTokens = FALSE argument132 if (!is_array($expectedTokens)) {133 return $this->lookahead(array($expectedTokens), $position, $allowEndOfTokens);[all …]
20 * @param array $expectedTokens22 public function __construct(PhpCss\Scanner\Token $encounteredToken, array $expectedTokens) { argument23 $this->_expectedTokens = $expectedTokens;26 foreach ($expectedTokens as $expectedToken) {
21 public function __construct(array $expectedTokens) { argument22 $this->_expectedTokens = $expectedTokens;25 foreach ($expectedTokens as $expectedToken) {
57 $expectedTokens = $this->_expectedTokens;59 $expectedTokens[] = Scanner\Token::COMBINATOR;64 if ($currentToken = $this->lookahead($expectedTokens)) {
358 $expectedTokens = $e->getExpectedTokens();360 if ($expectedTokens === null) {367 $expectedTokens->toStringVocabulary($recognizer->getVocabulary())