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

Method addTopExpression

src/core/kernel.js:376–379  ·  view source on GitHub ↗
(name, definition)

Source from the content-addressed store, hash-verified

374 }
375
376 addTopExpression(name, definition) {
377 this.#topExpressions.push(name);
378 this.addGrammarElement(name, definition);
379 }
380
381 commandStart(token) {
382 return this.#commands[token.value || ""];

Callers 1

registerParseElementMethod · 0.95

Calls 1

addGrammarElementMethod · 0.95

Tested by

no test coverage detected