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

Method matchOpToken

www/js/_hyperscript.esm.js:76–80  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

74 }
75 }
76 matchOpToken(value) {
77 if (this.currentToken() && this.currentToken().op && this.currentToken().value === value) {
78 return this.consumeToken();
79 }
80 }
81 matchTokenType(...types) {
82 if (this.currentToken() && this.currentToken().type && types.includes(this.currentToken().type)) {
83 return this.consumeToken();

Callers 15

matchAnyOpTokenMethod · 0.45
parseEventArgsMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseNakedMethod · 0.45
parseMethod · 0.45
matchOpTokenMethod · 0.45
parseFeatureMethod · 0.45
parseCommandMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45

Calls 2

currentTokenMethod · 0.45
consumeTokenMethod · 0.45

Tested by

no test coverage detected