1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use ;
//
// impl DuplicateError {
// pub fn as_report(&self, level: ReportKind) -> ValkyrieReport {
// let mut report = Report::build(level, self.this_item.file, 0).with_code(self.kind as u32);
// report.set_message(self.to_string());
// report.add_label(
// self.this_item.as_label(format!("{:?} `{}` is defined here.", self.kind, self.name)).with_color(Color::Blue),
// );
// report.add_label(
// self.last_item
// .as_label(format!("But {} `{}` has been defined here.", self.kind, self.name))
// .with_color(Color::Cyan),
// );
// report.set_help(format!("Items must have unique names, rename one of the items to have a unique name"));
// report.finish()
// }
// }