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.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| target | &T | A reference to a type, interface, union, variant, symbol_set, or field. | — |
| returns | utf8 | The joined comment text, or \"\" when absent. | — |
wcl
doc_comment(Image) // the doc comment above a type → the comment lines above the Image type