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

Method addLeafExpression

www/js/_hyperscript.esm.js:1646–1649  ·  view source on GitHub ↗
(name, definition)

Source from the content-addressed store, hash-verified

1644 }
1645 }
1646 addLeafExpression(name, definition) {
1647 this.#leafExpressions.push(name);
1648 this.addGrammarElement(name, definition);
1649 }
1650 addIndirectExpression(name, definition) {
1651 this.#indirectExpressions.push(name);
1652 this.addGrammarElement(name, definition);

Callers 1

registerParseElementMethod · 0.45

Calls 1

addGrammarElementMethod · 0.45

Tested by

no test coverage detected