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

Function prev_named

codegraph-kernel/src/dart.rs:142–148  ·  view source on GitHub ↗

dartPrevNamed (dart.ts) — the named sibling before `node`, past comments: `tester //` + newline + `.state(…)` puts the comment, not `tester`, right before the `.state` selector.

(node: Node<'t>)

Source from the content-addressed store, hash-verified

140/// `tester //` + newline + `.state(…)` puts the comment, not `tester`, right
141/// before the `.state` selector.
142fn prev_named<'t>(node: Node<'t>) -> Option<Node<'t>> {
143 let mut prev = node.prev_named_sibling();
144 while let Some(p) = prev.filter(|p| is_comment(*p)) {
145 prev = p.prev_named_sibling();
146 }
147 prev
148}
149
150/// dartNextNamed (dart.ts) — the named sibling after `node`, past comments.
151fn next_named<'t>(node: Node<'t>) -> Option<Node<'t>> {

Callers 5

bare_call_nameMethod · 0.85
receiver_ofMethod · 0.85
callee_of_arg_partMethod · 0.85
extract_member_readMethod · 0.85

Calls 1

is_commentFunction · 0.70

Tested by

no test coverage detected