decl_info(target: &T) → record

Category: [reflection](builtinsreflection)_

Describe a top-level declaration: its name, kind, doc comment, and schema classification (block / table / decorator / document).

ParameterTypeDescriptionRemarks
target&TA reference to a type, interface, union, or symbol_set declaration.
returnsrecord{ name, full_name, kind, doc, is_imported, is_document, block_kind, table_kind, decorator_name, extends }. The classification fields are none when the decorator is absent.
wcl
decl_info(MyDoc)   // declaration metadata for a type → { kind: "document", is_document: true, name: "MyDoc" }