Group diagnostics by primary
Render primary message above the excerpt and supporting messages as block decorations with a `Below` disposition. This is still super rough. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
co-authored by
Max Brunsfeld
parent
e1a2897d53
commit
6c5b27af1d
@@ -14,6 +14,13 @@ pub struct Anchor {
|
||||
}
|
||||
|
||||
impl Anchor {
|
||||
pub fn new(excerpt_id: ExcerptId, text_anchor: text::Anchor) -> Self {
|
||||
Self {
|
||||
excerpt_id,
|
||||
text_anchor,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn min() -> Self {
|
||||
Self {
|
||||
excerpt_id: ExcerptId::min(),
|
||||
|
||||
Reference in New Issue
Block a user