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).

ParameterTypeDescriptionRemarks
target&TA reference to a type, field, block, or variant.
decoratorutf8The decorator name, e.g. "doc".
slotutf8The argument (slot) name to read.
returnsanyThe argument's value, or none if absent.
wcl
decorator_arg(Image, "block", "name")   // read a decorator argument by name → "image"