MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / dispatcherField

Function dispatcherField

src/resolution/callback-synthesizer.ts:144–150  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

142}
143
144function dispatcherField(src: string): string | null {
145 const forOf = src.match(/\bof\s+(?:Array\.from\(\s*)?this\.(\w+)/);
146 if (forOf && /\b\w+\s*\(/.test(src)) return forOf[1]!;
147 const forEach = src.match(/this\.(\w+)\.forEach\(/);
148 if (forEach) return forEach[1]!;
149 return null;
150}
151
152const FN_KINDS = new Set(['method', 'function', 'component']);
153

Callers 1

fieldChannelEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected