Crate workspacer_syntax

Source

Traits§

GenerateSignature
A trait to generate a “signature” string (or declaration line) for different AST nodes like Fn, Struct, Enum, etc.

Functions§

extract_docs
Extracts doc lines from /// or /** ... */. We do NOT gather #[doc="..."] attributes here. Those can be handled separately by gather_doc_attrs if you want to unify them.
is_node_public
post_process_spacing
Minimal post-processing for spacing around -> and where. For example, it ensures ) -> has a space, and > where has a space.