getPrecedingDocstring — collect the comment run immediately preceding the node (climbing out of declaration wrappers first), cleaned and joined. Returns None when there is no preceding comment (a PRESENT-but-empty docstring after cleaning still returns Some(""), matching the TS helper).
(node: Node, src: &str)
| 133 | /// Returns None when there is no preceding comment (a PRESENT-but-empty |
| 134 | /// docstring after cleaning still returns Some(""), matching the TS helper). |
| 135 | pub fn preceding_docstring(node: Node, src: &str) -> Option<String> { |
| 136 | preceding_docstring_stepping_over(node, src, &[]) |
| 137 | } |
| 138 | |
| 139 | /// getPrecedingDocstring's `stepOver` — sibling kinds that may stand between |
| 140 | /// the declaration and its comments without ending the run (Dart's |
no test coverage detected