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

Function pascalNamed

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

The Pascal nodes a name names, whatever their case.

(lower: string, context: ResolutionContext)

Source from the content-addressed store, hash-verified

676
677/** The Pascal nodes a name names, whatever their case. */
678function pascalNamed(lower: string, context: ResolutionContext): Node[] {
679 const memo = memos(context).named;
680 let nodes = memo.get(lower);
681 if (!nodes) {
682 nodes = context.getNodesByLowerName(lower).filter((n) => n.language === 'pascal');
683 memo.set(lower, nodes);
684 }
685 return nodes;
686}
687
688/** Drops this module's per-context memos (the resolver clears them between runs). */
689export function clearPascalScopeMemos(context: ResolutionContext): void {

Callers 6

gatePascalDataCallFunction · 0.85
nestedRoutineInScopeFunction · 0.85
memberInHierarchyFunction · 0.85
unitDeclarationFunction · 0.85
classThroughAliasesFunction · 0.85
typesNamedFunction · 0.85

Calls 4

memosFunction · 0.85
getMethod · 0.65
getNodesByLowerNameMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected