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

Function gatePascalCall

src/resolution/pascal-scope.ts:190–196  ·  view source on GitHub ↗
(result: ResolvedRef, ref: UnresolvedRef, context: ResolutionContext)

Source from the content-addressed store, hash-verified

188 * routine-holding field or variable the project declares by that name.
189 */
190export function gatePascalCall(result: ResolvedRef, ref: UnresolvedRef, context: ResolutionContext): ResolvedRef | null {
191 const target = context.getNodeById?.(result.targetNodeId);
192 if (!target) return result;
193 if (DATA_KINDS.has(target.kind)) return gatePascalDataCall(target, result, ref, context);
194 if (isNestedRoutine(target, context)) return gatePascalNestedTarget(result, ref, context);
195 return result;
196}
197
198/** See gatePascalCall: a call resolved to data. */
199function gatePascalDataCall(target: Node, result: ResolvedRef, ref: UnresolvedRef, context: ResolutionContext): ResolvedRef | null {

Callers 1

resolveOneInMethod · 0.90

Calls 5

gatePascalDataCallFunction · 0.85
isNestedRoutineFunction · 0.85
gatePascalNestedTargetFunction · 0.85
hasMethod · 0.80
getNodeByIdMethod · 0.65

Tested by

no test coverage detected