MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / matchOpToken

Method matchOpToken

tools/common/_hyperscript.iife.js:78–82  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

76 }
77 }
78 matchOpToken(value) {
79 if (this.currentToken() && this.currentToken().op && this.currentToken().value === value) {
80 return this.consumeToken();
81 }
82 }
83 matchTokenType(...types) {
84 if (this.currentToken() && this.currentToken().type && types.includes(this.currentToken().type)) {
85 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