doc_comment(target: &T) → utf8

Category: [reflection](builtinsreflection)_

The doc comment — the contiguous run of # / // lines immediately above a declaration — attached to a reference, or \"\" when there is none. Complements decorator_arg(x, \"doc\", …) for @doc(\"…\") metadata.

ParameterTypeDescriptionRemarks
target&TA reference to a type, interface, union, variant, symbol_set, or field.
returnsutf8The joined comment text, or \"\" when absent.
wcl
doc_comment(Image)   // the doc comment above a type → the comment lines above the Image type