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

Function routineNames

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

Every Pascal method's and function's name, lowercased, or null when the context can't list them.

(context: ResolutionContext)

Source from the content-addressed store, hash-verified

666
667/** Every Pascal method's and function's name, lowercased, or null when the context can't list them. */
668function routineNames(context: ResolutionContext): Set<string> | null {
669 const memo = memos(context);
670 if (memo.routineNames === undefined) {
671 const names = context.getNodeNamesOfKinds?.('pascal', ['method', 'function']);
672 memo.routineNames = names ? new Set(names.map((n) => n.toLowerCase())) : null;
673 }
674 return memo.routineNames;
675}
676
677/** The Pascal nodes a name names, whatever their case. */
678function pascalNamed(lower: string, context: ResolutionContext): Node[] {

Callers 1

matchPascalParenlessRefFunction · 0.85

Calls 3

memosFunction · 0.85
mapMethod · 0.80
getNodeNamesOfKindsMethod · 0.65

Tested by

no test coverage detected