MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / find_child_text

Method find_child_text

src/extraction/fsharp_extractor.rs:434–448  ·  view source on GitHub ↗
(state: &ExtractionState, node: TsNode<'_>, kind: &str)

Source from the content-addressed store, hash-verified

432 }
433
434 fn find_child_text(state: &ExtractionState, node: TsNode<'_>, kind: &str) -> Option<String> {
435 let mut cursor = node.walk();
436 if cursor.goto_first_child() {
437 loop {
438 let child = cursor.node();
439 if child.kind() == kind {
440 return Some(state.node_text(child));
441 }
442 if !cursor.goto_next_sibling() {
443 break;
444 }
445 }
446 }
447 None
448 }
449
450 fn extract_calls(state: &mut ExtractionState, node: TsNode<'_>, fn_id: &str) {
451 let mut cursor = node.walk();

Callers

nothing calls this directly

Calls 2

kindMethod · 0.80
node_textMethod · 0.45

Tested by

no test coverage detected