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

Method addFeature

www/js/_hyperscript.js:1588–1592  ·  view source on GitHub ↗
(keyword, definition)

Source from the content-addressed store, hash-verified

1586 }
1587 }
1588 addFeature(keyword, definition) {
1589 var featureGrammarType = keyword + "Feature";
1590 this.#grammar[featureGrammarType] = definition;
1591 this.#features[keyword] = definition;
1592 }
1593 /**
1594 * Register a parse element class based on its static metadata.
1595 * Commands need `static keyword`, expressions need `static grammarName`.

Callers 15

addFeaturesMethod · 0.45
registerParseElementMethod · 0.45
bun-hyperscript.jsFile · 0.45
EFunction · 0.45
qFunction · 0.45
socketPluginFunction · 0.45
eventsourcePluginFunction · 0.45
wFunction · 0.45
EFunction · 0.45
qFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected