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

Method extract_docstring

src/extraction/go_extractor.rs:1184–1186  ·  view source on GitHub ↗

Extract docstrings from preceding comment nodes.

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

Source from the content-addressed store, hash-verified

1182
1183 /// Extract docstrings from preceding comment nodes.
1184 fn extract_docstring(state: &ExtractionState, node: TsNode<'_>) -> Option<String> {
1185 docstring_from_preceding_comments(&state.source, node, clean_c_comment)
1186 }
1187
1188 /// Determine Go visibility: uppercase first character means exported (Pub),
1189 /// lowercase means unexported (Private).

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected