We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824f362 commit 12e05b6Copy full SHA for 12e05b6
src/Parser.php
@@ -385,17 +385,6 @@ private function eat(...$kinds) {
385
return new MissingToken($kinds[0], $token->fullStart);
386
}
387
388
- /** @param int $kind */
389
- private function eat1($kind) {
390
- $token = $this->token;
391
- if ($token->kind === $kind) {
392
- $this->token = $this->lexer->scanNextToken();
393
- return $token;
394
- }
395
- // TODO include optional grouping for token kinds
396
- return new MissingToken($kind, $token->fullStart);
397
398
-
399
/**
400
* Retrieve the current token, and check that it's of the kind $kind.
401
* If so, advance and return the token. Otherwise return a MissingToken for
0 commit comments