MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cs_depth_at

Function cs_depth_at

internal/cbm/doclink_cs.c:1807–1810  ·  view source on GitHub ↗

Brace nesting depth at byte `pos`. */

Source from the content-addressed store, hash-verified

1805
1806/* Brace nesting depth at byte `pos`. */
1807static int cs_depth_at(const cs_scan_t *s, uint32_t pos) {
1808 int i = cs_brace_lower(s, pos);
1809 return i > 0 ? s->braces[i - SKIP_ONE].depth : 0;
1810}
1811
1812/* The extent of the block opened by brace `b`. false when it has no partner. */
1813static bool cs_brace_extent(const cs_scan_t *s, int b, uint32_t *end, uint32_t *end_line,

Callers 1

cs_emit_itemsFunction · 0.85

Calls 1

cs_brace_lowerFunction · 0.85

Tested by

no test coverage detected