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

Function rustInnerBlockAt

src/resolution/rust-scopes.ts:501–503  ·  view source on GitHub ↗
(scopes: RustScopes, offset: number)

Source from the content-addressed store, hash-verified

499
500/** The innermost `{…}` of a file read by readRustScopes holding `offset`, as [open, close]; null outside every block. */
501export function rustInnerBlockAt(scopes: RustScopes, offset: number): [number, number] | null {
502 return blockAt(scopes.events, scopes.openAfter, scopes.close, scopes.code.length, offset);
503}
504
505/** The names a Rust file binds (RustBinding), read from what readRustScopes kept of it. */
506function readRustBindings(scopes: RustScopes): Map<string, RustBinding[]> {

Callers

nothing calls this directly

Calls 1

blockAtFunction · 0.85

Tested by

no test coverage detected