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

Function normaliseCall

src/ui-server/api/effects.ts:275–283  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

273
274/** Normalise the call text the rules see: `await`/`new` dropped, `?.` as `.`, `this.` kept. */
275export function normaliseCall(text: string): string {
276 return text
277 .replace(/^\s*(?:await|new|yield|return|throw)\s+/, '')
278 .replace(/^\s*(?:await|new)\s+/, '')
279 .replace(/\?\./g, '.')
280 .replace(/!\./g, '.')
281 .replace(/\s+/g, '')
282 .replace(/<[^<>]*>/g, '');
283}
284
285/**
286 * Swift names the table knows from other stacks: Foundation's `Timer`

Callers 3

classifyEffectFunction · 0.85
responseStatusFunction · 0.85
implicitResponseStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected