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

Function groupNames

src/resolution/pascal-scope.ts:639–646  ·  view source on GitHub ↗

The names a parameter group declares (`const A, B: Integer` → A, B).

(group: string)

Source from the content-addressed store, hash-verified

637
638/** The names a parameter group declares (`const A, B: Integer` → A, B). */
639function groupNames(group: string): string[] {
640 const colon = group.indexOf(':');
641 return (colon < 0 ? group : group.slice(0, colon))
642 .replace(/\[[^\]]*\]/g, ' ')
643 .replace(/\b(?:const|constref|var|out)\b/gi, ' ')
644 .split(',')
645 .filter((n) => n.trim());
646}
647
648/**
649 * A Pascal signature's parameter groups, the text between its parentheses

Callers 2

pascalParameterRangeFunction · 0.85
pascalParameterTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected