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

Function isRoutine

src/resolution/pascal-scope.ts:844–846  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

842// ---------------------------------------------------------------------------
843
844function isRoutine(node: Node): boolean {
845 return node.kind === 'method' || node.kind === 'function';
846}
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 {

Callers 15

matchPascalInheritedCallFunction · 0.85
gatePascalCallFunction · 0.85
sameRoutineFunction · 0.85
gatePascalDataCallFunction · 0.85
nameInScopeFunction · 0.85
isNestedRoutineFunction · 0.85
routineNodeFunction · 0.85
matchPascalNestedCallFunction · 0.85
gatePascalNestedTargetFunction · 0.85
memberThroughPathFunction · 0.85
returnsRoutineTypeFunction · 0.85
valueTypeOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected