mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
when_if_guard
This commit is contained in:
parent
671eb0f32e
commit
98479511f5
4 changed files with 85 additions and 6 deletions
|
@ -12,6 +12,7 @@ use ven_pretty::{BoxAllocator, DocAllocator, DocBuilder, Render, RenderAnnotated
|
|||
|
||||
/// A textual report.
|
||||
pub struct Report {
|
||||
pub title: String,
|
||||
pub filename: PathBuf,
|
||||
pub text: ReportText,
|
||||
}
|
||||
|
@ -121,6 +122,7 @@ pub fn can_problem(filename: PathBuf, problem: Problem) -> Report {
|
|||
};
|
||||
|
||||
Report {
|
||||
title: "SYNTAX PROBLEM".to_string(),
|
||||
filename,
|
||||
text: Concat(texts),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue