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

Method close_of

codegraph-kernel/src/ccpp/brace_scopes.rs:78–80  ·  view source on GitHub ↗

The offset of the `}` that closes the `{` at `open`.

(&self, open: usize)

Source from the content-addressed store, hash-verified

76impl BraceScopes {
77 /// The offset of the `}` that closes the `{` at `open`.
78 pub fn close_of(&self, open: usize) -> Option<usize> {
79 self.closes.get(&open).copied()
80 }
81
82 /// The named namespaces whose braces hold `offset`, outermost first, as written.
83 pub fn namespaces_at(&self, offset: usize) -> Vec<String> {

Callers 2

brace_body_endMethod · 0.80
open_class_scopeMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected