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

Function argumentKey

src/resolution/cpp-template-instantiations.ts:336–338  ·  view source on GitHub ↗

A written template argument as it compares: spaced only between words.

(arg: string)

Source from the content-addressed store, hash-verified

334
335/** A written template argument as it compares: spaced only between words. */
336function argumentKey(arg: string): string {
337 return arg.replace(/\s*([^\w\s])\s*/g, '$1').replace(/\s+/g, ' ');
338}
339
340const slotKey = (slot: Slot): string => `${slot.template.key}#${slot.index}#${slot.template.pattern?.join() ?? ''}`;
341

Callers 3

writtenAsMethod · 0.85
bindingsMethod · 0.85
argumentsOfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected