DeclView

struct DeclView

A token-preserving lens over a declaration's name and optional body.

Atom tokens retain trivia, provenance, and hygiene. Rebuilders splice only the selected extent and reuse every untouched token, unlike rebuilding from the AST, which would lose exact token identity. Unsupported shapes remain viewable as other_shape but expose no replaceable name or body.