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

Method extract_doc

src/extraction/elixir_extractor.rs:483–494  ·  view source on GitHub ↗
(state: &ExtractionState, node: TsNode<'_>)

Source from the content-addressed store, hash-verified

481 }
482
483 fn extract_doc(state: &ExtractionState, node: TsNode<'_>) -> Option<String> {
484 // @doc "..." precedes def as a sibling call node.
485 let prev = node.prev_named_sibling()?;
486 if prev.kind() == "call" {
487 let head = Self::call_head(state, prev)?;
488 if head == "@doc" {
489 let text = state.node_text(prev);
490 return Some(text);
491 }
492 }
493 None
494 }
495
496 fn extract_calls(state: &mut ExtractionState, node: TsNode<'_>, fn_id: &str) {
497 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