MCPcopy
hub / github.com/opentrace/opentrace / registerClass

Function registerClass

ui/src/runner/browser/__tests__/call-resolver.test.ts:70–75  ·  view source on GitHub ↗
(reg: Registries, cls: SymbolNode)

Source from the content-addressed store, hash-verified

68}
69
70function registerClass(reg: Registries, cls: SymbolNode): void {
71 registerNode(reg, cls);
72 const existing = reg.classRegistry.get(cls.name);
73 if (existing) existing.push(cls);
74 else reg.classRegistry.set(cls.name, [cls]);
75}
76
77describe('resolveCalls', () => {
78 // Strategy 1: self/this resolution

Callers 1

Calls 3

registerNodeFunction · 0.85
pushMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected