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

Function scopeKnown

src/resolution/pascal-scope.ts:781–783  ·  view source on GitHub ↗

* Whether what a file's code sees is known: a unit's or a program's file, * or an include file whose unit includes it. One no file of the project * includes with `{$I}` (an Inno Setup script's, pulled in by `#include`) may * see declarations its includer's other files make.

(filePath: string, context: ResolutionContext)

Source from the content-addressed store, hash-verified

779 * see declarations its includer's other files make.
780 */
781function scopeKnown(filePath: string, context: ResolutionContext): boolean {
782 return !/\.inc$/i.test(filePath) || unitFilesOf(filePath, context)[0] !== filePath;
783}
784
785/**
786 * The class the nearest routine header at or above a line names

Callers 1

gatePascalCallFunction · 0.85

Calls 1

unitFilesOfFunction · 0.85

Tested by

no test coverage detected