mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Update reporting to use new crate structure.
This commit is contained in:
parent
a1b8c97039
commit
6ac60fa5cb
1 changed files with 13 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
use crate::can::problem::Problem;
|
||||
use crate::module::symbol::{Interns, ModuleId, Symbol};
|
||||
use crate::pretty_print_types::content_to_string;
|
||||
use crate::region::Region;
|
||||
use crate::subs::{Content, Subs};
|
||||
use roc_module::symbol::{Interns, ModuleId, Symbol};
|
||||
use roc_region::all::Region;
|
||||
use std::path::PathBuf;
|
||||
|
||||
/// A textual report.
|
||||
|
@ -12,17 +12,18 @@ pub struct Report {
|
|||
}
|
||||
|
||||
impl Report {
|
||||
pub fn can_problem(filename: PathBuf, problem: Problem) -> Self {
|
||||
let text = match problem {
|
||||
Problem::UnusedDef(symbol, region) => {
|
||||
panic!("TODO implelment me!");
|
||||
}
|
||||
_ => {
|
||||
panic!("TODO implement others");
|
||||
}
|
||||
};
|
||||
pub fn can_problem(_filename: PathBuf, _problem: Problem) -> Self {
|
||||
// let text = match problem {
|
||||
// Problem::UnusedDef(symbol, region) => {
|
||||
// panic!("TODO implelment me!");
|
||||
// }
|
||||
// _ => {
|
||||
// panic!("TODO implement others");
|
||||
// }
|
||||
// };
|
||||
|
||||
Report { filename, text }
|
||||
// Report { filename, text }
|
||||
panic!("TODO implement me!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue