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

Function isRoutine

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

Source from the content-addressed store, hash-verified

337// ---------------------------------------------------------------------------
338
339function isRoutine(node: Node): boolean {
340 return node.kind === 'method' || node.kind === 'function';
341}
342
343/** 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. */
344function nameInScope(name: string, cls: Node | null, ref: UnresolvedRef, context: ResolutionContext): Found | null {

Callers 9

gatePascalDataCallFunction · 0.85
nameInScopeFunction · 0.85
isNestedRoutineFunction · 0.85
routineNodeFunction · 0.85
matchPascalNestedCallFunction · 0.85
gatePascalNestedTargetFunction · 0.85
memberThroughPathFunction · 0.85
returnsRoutineTypeFunction · 0.85
unitDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected