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

Method parseFeature

www/js/_hyperscript.js:1355–1365  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

1353 this.addGrammarElement("leaf", this.parseLeaf.bind(this));
1354 }
1355 parseFeature(parser) {
1356 if (parser.matchOpToken("(")) {
1357 var featureElement = parser.requireElement("feature");
1358 parser.requireOpToken(")");
1359 return featureElement;
1360 }
1361 var featureDefinition = this.#features[parser.currentToken().value || ""];
1362 if (featureDefinition) {
1363 return featureDefinition(parser);
1364 }
1365 }
1366 parseCommand(parser) {
1367 if (parser.matchOpToken("(")) {
1368 const commandElement2 = parser.requireElement("command");

Callers

nothing calls this directly

Calls 4

matchOpTokenMethod · 0.45
requireElementMethod · 0.45
requireOpTokenMethod · 0.45
currentTokenMethod · 0.45

Tested by

no test coverage detected