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

Function pascalNamed

src/resolution/pascal-scope.ts:1856–1864  ·  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

1854
1855/** The Pascal nodes a name names, whatever their case. */
1856function pascalNamed(lower: string, context: ResolutionContext): Node[] {
1857 const memo = memos(context).named;
1858 let nodes = memo.get(lower);
1859 if (!nodes) {
1860 nodes = context.getNodesByLowerName(lower).filter((n) => n.language === 'pascal');
1861 memo.set(lower, nodes);
1862 }
1863 return nodes;
1864}
1865
1866/** Drops this module's per-context memos (the resolver clears them between runs). */
1867export function clearPascalScopeMemos(context: ResolutionContext): void {

Callers 10

matchPascalInheritedCallFunction · 0.85
gatePascalCallFunction · 0.85
routineAlternativeFunction · 0.85
gatePascalDataCallFunction · 0.85
nestedRoutineInScopeFunction · 0.85
ownMemberFunction · 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