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

Method matchOpToken

www/js/ext/component.js:71–75  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

69 }
70 }
71 matchOpToken(value) {
72 if (this.currentToken() && this.currentToken().op && this.currentToken().value === value) {
73 return this.consumeToken();
74 }
75 }
76 matchTokenType(...types) {
77 if (this.currentToken() && this.currentToken().type && types.includes(this.currentToken().type)) {
78 return this.consumeToken();

Callers 15

parseEventArgsMethod · 0.45
parseEventArgsMethod · 0.45
parseEventArgsMethod · 0.45
parseEventArgsMethod · 0.45
matchAnyOpTokenMethod · 0.45
parseEventArgsMethod · 0.45
parseEventArgsMethod · 0.45
parseEventArgsMethod · 0.45
parseEventArgsMethod · 0.45
parseEventArgsMethod · 0.45
parseMethod · 0.45
parseEventArgsMethod · 0.45

Calls 2

currentTokenMethod · 0.45
consumeTokenMethod · 0.45

Tested by

no test coverage detected