marginalia 0.2.0

Trivia-preserving parsing and formatting for logos + lalrpop
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Comment attachment.
//!
//! Given the `TriviaEvent`s from a [`crate::TriviaLexer`] and the spans of
//! "interesting" AST nodes, decide which comments are *leading*, *trailing*,
//! or *dangling* for each node.

mod attacher;
mod map;

pub use attacher::{attach, AttachOptions};
pub use map::{CommentMap, Comments, HasSpan};