MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / forEachFunction

Method forEachFunction

lib.esm/abi/interface.js:454–461  ·  view source on GitHub ↗

* Iterate over all functions, calling %%callback%%, sorted by their name.

(callback)

Source from the content-addressed store, hash-verified

452 * Iterate over all functions, calling %%callback%%, sorted by their name.
453 */
454 forEachFunction(callback) {
455 const names = Array.from(this.#functions.keys());
456 names.sort((a, b) => a.localeCompare(b));
457 for (let i = 0; i < names.length; i++) {
458 const name = names[i];
459 callback((this.#functions.get(name)), i);
460 }
461 }
462 // Find an event definition by any means necessary (unless it is ambiguous)
463 #getEvent(key, values, forceUnique) {
464 // EventTopic

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected