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

Function exportedRoutine

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

* Whether other units see a unit's routine: one its unit's interface section * declares (`function Foo…` above `implementation`), whatever file implements * it. One its implementation alone declares is the unit's own (mORMot's * `IdemPChar` in `mormot.core.os.posix.inc`, which `mormot.core.os`'s

(routine: Node, context: ResolutionContext)

Source from the content-addressed store, hash-verified

2210 * hides nothing.
2211 */
2212function exportedRoutine(routine: Node, context: ResolutionContext): boolean {
2213 const names = interfaceRoutineNames(unitFilesOf(routine.filePath, context)[0]!, context);
2214 return names === null || names.has(routine.name.toLowerCase());
2215}
2216
2217/**
2218 * The names of the routines a unit file's interface section declares,

Callers 2

unitRoutineInScopeFunction · 0.85
unitDeclarationFunction · 0.85

Calls 3

interfaceRoutineNamesFunction · 0.85
unitFilesOfFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected