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

Function isPascalSystemCall

src/resolution/pascal-scope.ts:138–141  ·  view source on GitHub ↗
(ref: UnresolvedRef, context: ResolutionContext)

Source from the content-addressed store, hash-verified

136
137/** Whether `ref` is a bare Pascal call to one of the System unit's names (see PASCAL_SYSTEM_NAMES). */
138export function isPascalSystemCall(ref: UnresolvedRef, context: ResolutionContext): boolean {
139 return ref.language === 'pascal' && ref.referenceKind === 'calls' && PASCAL_SYSTEM_NAMES.has(ref.referenceName.toLowerCase()) &&
140 isBareCall(ref, context);
141}
142
143/**
144 * Whether a Pascal call named by a bare name is written bare: its expression

Callers 1

resolveOneInnerMethod · 0.90

Calls 2

isBareCallFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected