pub fn scan_definitions(root: &SyntaxNode) -> SignatureDbExpand description
Scan root for user command/environment definitions and return their extracted
signatures. Names already defined earlier in the document are overwritten, so a
later \renewcommand wins — TeX’s last-definition-wins, modulo execution order
we do not track.