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

Method extract_docstring

src/extraction/pascal_extractor.rs:1351–1353  ·  view source on GitHub ↗

Extract docstrings from preceding comment nodes.

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

Source from the content-addressed store, hash-verified

1349
1350 /// Extract docstrings from preceding comment nodes.
1351 fn extract_docstring(state: &ExtractionState, node: TsNode<'_>) -> Option<String> {
1352 docstring_from_preceding_comments(&state.source, node, Self::clean_comment)
1353 }
1354
1355 /// Strip comment markers from a single Pascal comment text.
1356 fn clean_comment(comment: &str) -> String {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected