The names a parameter group declares (`const A, B: Integer` → A, B).
(group: string)
| 637 | |
| 638 | /** The names a parameter group declares (`const A, B: Integer` → A, B). */ |
| 639 | function 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 |
no outgoing calls
no test coverage detected