MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / matchTokenType

Method matchTokenType

www/js/ext/component.js:76–80  ·  view source on GitHub ↗
(...types)

Source from the content-addressed store, hash-verified

74 }
75 }
76 matchTokenType(...types) {
77 if (this.currentToken() && this.currentToken().type && types.includes(this.currentToken().type)) {
78 return this.consumeToken();
79 }
80 }
81 matchAnyToken(...tokens) {
82 for (var i = 0; i < tokens.length; i++) {
83 var match = this.matchToken(tokens[i]);

Callers

nothing calls this directly

Calls 2

currentTokenMethod · 0.45
consumeTokenMethod · 0.45

Tested by

no test coverage detected