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

Method parseFeature

www/js/_hyperscript.esm.js:1353–1363  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

1351 this.addGrammarElement("leaf", this.parseLeaf.bind(this));
1352 }
1353 parseFeature(parser) {
1354 if (parser.matchOpToken("(")) {
1355 var featureElement = parser.requireElement("feature");
1356 parser.requireOpToken(")");
1357 return featureElement;
1358 }
1359 var featureDefinition = this.#features[parser.currentToken().value || ""];
1360 if (featureDefinition) {
1361 return featureDefinition(parser);
1362 }
1363 }
1364 parseCommand(parser) {
1365 if (parser.matchOpToken("(")) {
1366 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