MCPcopy
hub / github.com/vercel/hyper / expect

Method expect

bin/yarn-standalone.js:34613–34619  ·  view source on GitHub ↗
(tokType)

Source from the content-addressed store, hash-verified

34611 }
34612
34613 expect(tokType) {
34614 if (this.token.type === tokType) {
34615 this.next();
34616 } else {
34617 this.unexpected();
34618 }
34619 }
34620
34621 eat(tokType) {
34622 if (this.token.type === tokType) {

Callers 1

yarn-standalone.jsFile · 0.80

Calls 2

nextMethod · 0.95
unexpectedMethod · 0.95

Tested by

no test coverage detected