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

Function unitRoutineColumn

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

* How far a unit's own routines are indented at most. In a unit whose * `unit` header the parser lost, the members of a class it couldn't read * come out as routines of the unit, indented deeper than the unit's own * (`function Http: IHttpClient;` in a class body); elsewhere, any.

(filePath: string, context: ResolutionContext)

Source from the content-addressed store, hash-verified

811 * (`function Http: IHttpClient;` in a class body); elsewhere, any.
812 */
813function unitRoutineColumn(filePath: string, context: ResolutionContext): number {
814 return outlineOf(filePath, context).routineColumn;
815}
816
817/** What scope lookups need of a file's nodes, read once: its classes, its `uses` in order, unitRoutineColumn. */
818function outlineOf(filePath: string, context: ResolutionContext): { classes: Node[]; imports: Node[]; routineColumn: number } {

Callers 1

unitDeclarationFunction · 0.85

Calls 1

outlineOfFunction · 0.85

Tested by

no test coverage detected