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

Method at

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

The values of the intervals holding `offset` (open < offset < close), outermost first.

(&self, offset: usize)

Source from the content-addressed store, hash-verified

43
44 /// The values of the intervals holding `offset` (open < offset < close), outermost first.
45 pub fn at(&self, offset: usize) -> Vec<T> {
46 let mut out = Vec::new();
47 let mut k = self.innermost(offset);
48 while let Some(i) = k {
49 out.push(self.values[i].clone());
50 k = self.parents[i];
51 }
52 out.reverse();
53 out
54 }
55
56 /// The innermost interval holding `offset`: the last interval opening
57 /// before `offset` or one of the intervals around that one.

Callers 8

visit_in_brace_scopeMethod · 0.45
namespaces_atMethod · 0.45
timeoutOfFunction · 0.45
watcher.test.tsFile · 0.45

Calls 2

pushMethod · 0.80
innermostMethod · 0.45

Tested by 1

timeoutOfFunction · 0.36