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

Function following_accessors

codegraph-kernel/src/kotlin.rs:159–170  ·  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

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

Callers 1

try_visit_hookMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected