ast_string(target: &T) → utf8
Category: [reflection](builtinsreflection)_
Pretty-print the canonical source behind a reference (type/interface/union/symbol_set/block/field) or a function value.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| target | &T | A dataref to a declaration, or a function value. | — |
| returns | utf8 | The canonical (pretty-printed) source text. | — |
wcl
ast_string(Image) // pretty-print a type's source → "type Image { ... }"