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

Method namespaces_at

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

The named namespaces whose braces hold `offset`, outermost first, as written.

(&self, offset: usize)

Source from the content-addressed store, hash-verified

81
82 /// The named namespaces whose braces hold `offset`, outermost first, as written.
83 pub fn namespaces_at(&self, offset: usize) -> Vec<String> {
84 self.namespaces.at(offset)
85 }
86
87 /// The 1-based line and the UTF-16 column of `offset`.
88 pub fn position_of(src: &str, line_starts: &[usize], offset: usize) -> (u32, u32) {

Callers 1

visit_in_brace_scopeMethod · 0.80

Calls 1

atMethod · 0.45

Tested by

no test coverage detected