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

Method extract_name

src/extraction/java_extractor.rs:928–930  ·  view source on GitHub ↗

Extract the name of a node by looking for a "name" field child.

(state: &ExtractionState, node: TsNode<'_>)

Source from the content-addressed store, hash-verified

926
927 /// Extract the name of a node by looking for a "name" field child.
928 fn extract_name(state: &ExtractionState, node: TsNode<'_>) -> Option<String> {
929 node.child_by_field_name("name").map(|n| state.node_text(n))
930 }
931
932 /// Extract Java visibility from modifiers child.
933 fn extract_java_visibility(node: TsNode<'_>, state: &ExtractionState) -> Visibility {

Callers

nothing calls this directly

Calls 1

node_textMethod · 0.45

Tested by

no test coverage detected