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

Function nameInScope

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

A bare name, looked up the way Delphi looks it up from a routine of class `cls` (null: a free routine): a routine, or null.

(name: string, cls: Node | null, ref: UnresolvedRef, context: ResolutionContext)

Source from the content-addressed store, hash-verified

847
848/** A bare name, looked up the way Delphi looks it up from a routine of class `cls` (null: a free routine): a routine, or null. */
849function nameInScope(name: string, cls: Node | null, ref: UnresolvedRef, context: ResolutionContext): Found | null {
850 const decl = declarationInScope(name.toLowerCase(), cls, ref, context);
851 return decl && isRoutine(decl.node) ? decl : null;
852}
853
854/**
855 * The routine nested in the calling routine, or in one around it, that a

Callers 1

matchPascalParenlessRefFunction · 0.85

Calls 2

declarationInScopeFunction · 0.85
isRoutineFunction · 0.85

Tested by

no test coverage detected