decorator_arg(target: &T, decorator: utf8, slot: utf8) → any
Category: [reflection](builtinsreflection)_
Read one named argument of a decorator on a referenced declaration (none if absent).
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| target | &T | A reference to a type, field, block, or variant. | — |
| decorator | utf8 | The decorator name, e.g. "doc". | — |
| slot | utf8 | The argument (slot) name to read. | — |
| returns | any | The argument's value, or none if absent. | — |
wcl
decorator_arg(Image, "block", "name") // read a decorator argument by name → "image"