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

Function following_accessors

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

217
218/// The sibling accessors that follow a property declaration, in source order.
219fn following_accessors<'t>(node: Node<'t>) -> Vec<Node<'t>> {
220 let mut out = Vec::new();
221 let mut n = node.next_named_sibling();
222 while let Some(c) = n {
223 if !matches!(c.kind(), "getter" | "setter") {
224 break;
225 }
226 out.push(c);
227 n = c.next_named_sibling();
228 }
229 out
230}
231
232struct Scope {
233 row: u32,

Callers 1

try_visit_hookMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected