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

Method addFeature

src/core/kernel.js:296–300  ·  view source on GitHub ↗
(keyword, definition)

Source from the content-addressed store, hash-verified

294 }
295
296 addFeature(keyword, definition) {
297 var featureGrammarType = keyword + "Feature";
298 this.#grammar[featureGrammarType] = definition;
299 this.#features[keyword] = definition;
300 }
301
302 /**
303 * Register a parse element class based on its static metadata.

Callers 9

addFeaturesMethod · 0.95
registerParseElementMethod · 0.95
bun-hyperscript.jsFile · 0.45
socketPluginFunction · 0.45
interceptPluginFunction · 0.45
workerPluginFunction · 0.45
eventsourcePluginFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected