You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yash error types (such as yash_syntax::parser::Error and yash_semantics::expansion::Error) should be convertible to annotate_snippets::snippet::Snippet via the From trait.
annotate-snippets-rs supports annotating a range of characters, but currently yash_syntax::source::Location only points to a single character in the source code.
Considering a new intermediate structure that can be converted to annotate_snippets::snippet::Snippet. It would be more organized and versatile than directly constructing a Snippet from an Error. It would also help owning message strings that are referenced from the Snippet.
pubstructMessage{r#type:AnnotationType,title:String,// or Cow<'_, str>annotations:Vec<Annotation>,}pubstructAnnotation{r#type:AnnotationType,label:String,// or Cow<'_, str>location:Location,}
via the From trait.The text was updated successfully, but these errors were encountered: