MCPcopy Create free account
hub / github.com/douglance/devsql / named_children

Function named_children

crates/devsql/src/providers/imports.rs:404–419  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

402}
403
404fn named_children(node: Node) -> Vec<Node> {
405 let mut cursor = node.walk();
406 let mut children = Vec::new();
407 if cursor.goto_first_child() {
408 loop {
409 let child = cursor.node();
410 if child.is_named() {
411 children.push(child);
412 }
413 if !cursor.goto_next_sibling() {
414 break;
415 }
416 }
417 }
418 children
419}
420
421fn string_literal_value(node: Node, source: &str) -> String {
422 clean_identifier(node_text(node, source))

Callers 3

parse_ts_import_clauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected