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

Function memos

src/resolution/pascal-scope.ts:652–665  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

650const MEMOS = new WeakMap<ResolutionContext, Memos>();
651
652function memos(context: ResolutionContext): Memos {
653 let m = MEMOS.get(context);
654 if (!m) {
655 m = {
656 named: new Map(), inScope: new Map(), classOfRoutine: new Map(), classByQn: new Map(),
657 ancestors: new Map(), usedFiles: new Map(), classByName: new Map(), unitFiles: new Map(), hierarchy: new Map(),
658 memberTypes: new Map(), keywords: new Map(), procedural: new Map(), headerClasses: new Map(), outlines: new Map(),
659 conditionDepths: new Map(), unitFileSets: new Map(), includes: new Map(), includers: new Map(), ownFiles: new Map(),
660 nestedInScope: new Map(), routineNodes: new Map(), routineQns: new Map(),
661 };
662 MEMOS.set(context, m);
663 }
664 return m;
665}
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 {

Callers 15

routineHeaderAtFunction · 0.85
declaredUnderConditionFunction · 0.85
headerClassAtFunction · 0.85
nestedRoutineInScopeFunction · 0.85
isNestedRoutineFunction · 0.85
routineNodeFunction · 0.85
declarationInScopeFunction · 0.85
routineNamesFunction · 0.85
pascalNamedFunction · 0.85
classByQualifiedNameFunction · 0.85
classOfRoutineFunction · 0.85
ancestorsOfFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected