Skip to main content

Module attach

Module attach 

Source
Expand description

Comment attachment.

Given the TriviaEvents from a crate::TriviaLexer and the spans of “interesting” AST nodes, decide which comments are leading, trailing, or dangling for each node.

Structs§

AttachOptions
CommentMap
Comments
Comments attached to a single anchor span.

Traits§

HasSpan

Functions§

attach