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

Function unitRoutineColumn

src/resolution/pascal-scope.ts:2318–2320  ·  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

2316 * (`function Http: IHttpClient;` in a class body); elsewhere, any.
2317 */
2318function unitRoutineColumn(filePath: string, context: ResolutionContext): number {
2319 return outlineOf(filePath, context).routineColumn;
2320}
2321
2322/** What scope lookups need of a file's nodes, read once: its classes, its `uses` in order, unitRoutineColumn. */
2323function 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