Expand description
Documentation extraction and source mapping.
This module handles the extraction and processing of doc comments and #[doc = "..."]
attributes, including macro expansion for #[doc = macro!()] patterns.
It builds a concatenated string of the full docs as well as a source map
to map it back to AST (which is needed for things like resolving links in doc comments
and highlight injection).
StructsΒ§
- DocMacro
Expander π - Docs
- Docs
Source πMapLine - Indent π
EnumsΒ§
- DocComment
Kind π - IsInner
Doc
FunctionsΒ§
- expand_
doc_ πexpr_ via_ macro_ pipeline - expand_
doc_ πmacro_ call - extend_
with_ πattrs - extract_
docs π - get_
horizontal_ πtrim - Copied verbatim from rustcβs
beautify_doc_string, moduloCommentKind/CommentShaperenaming and returningStringrather than interning toSymbol. - get_
vertical_ πtrim - Copied verbatim from rustcβs
beautify_doc_string, moduloCommentKind/CommentShaperenaming.