(result: ResolvedRef, ref: UnresolvedRef, context: ResolutionContext)
| 188 | * routine-holding field or variable the project declares by that name. |
| 189 | */ |
| 190 | export 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. */ |
| 199 | function gatePascalDataCall(target: Node, result: ResolvedRef, ref: UnresolvedRef, context: ResolutionContext): ResolvedRef | null { |
no test coverage detected