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

Function following_accessors

codegraph-kernel/src/kotlin.rs:160–171  ·  view source on GitHub ↗

The sibling accessors that follow a property declaration, in source order.

(node: Node<'t>)

Source from the content-addressed store, hash-verified

158
159/// The sibling accessors that follow a property declaration, in source order.
160fn following_accessors<'t>(node: Node<'t>) -> Vec<Node<'t>> {
161 let mut out = Vec::new();
162 let mut n = node.next_named_sibling();
163 while let Some(c) = n {
164 if !matches!(c.kind(), "getter" | "setter") {
165 break;
166 }
167 out.push(c);
168 n = c.next_named_sibling();
169 }
170 out
171}
172
173struct Scope {
174 row: u32,

Callers 1

try_visit_hookMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected