MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / handleWithLinks

Function handleWithLinks

src/common/controller.ts:43–54  ·  view source on GitHub ↗
(identifier: Identifier, param: any)

Source from the content-addressed store, hash-verified

41 }
42
43 handleWithLinks(identifier: Identifier, param: any): boolean {
44 if (param != undefined) {
45 return false;
46 }
47 for (const handlers of this.links) {
48 if (handlers.has(identifier)) {
49 (handlers.get(identifier) as Handler)(this);
50 return true;
51 }
52 }
53 return false;
54 }
55
56 bind() {
57 bus.gon("callback", (args: Args) => {

Callers

nothing calls this directly

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected