Lines Matching refs:diagnostic

3 use crate::diagnostic::{Diagnostic, LabelStyle};
19 pub struct RichDiagnostic<'diagnostic, 'config, FileId> {
20 diagnostic: &'diagnostic Diagnostic<FileId>, field
24 impl<'diagnostic, 'config, FileId> RichDiagnostic<'diagnostic, 'config, FileId>
29 diagnostic: &'diagnostic Diagnostic<FileId>, in new()
31 ) -> RichDiagnostic<'diagnostic, 'config, FileId> { in new() argument
32 RichDiagnostic { diagnostic, config } in new()
45 struct LabeledFile<'diagnostic, FileId> { in render()
51 lines: BTreeMap<usize, Line<'diagnostic>>, in render()
55 impl<'diagnostic, FileId> LabeledFile<'diagnostic, FileId> { in render()
61 ) -> &mut Line<'diagnostic> { in render() argument
73 struct Line<'diagnostic> { in render()
77 single_labels: Vec<SingleLabel<'diagnostic>>, in render()
78 multi_labels: Vec<(usize, LabelStyle, MultiLabel<'diagnostic>)>, in render()
89 for label in &self.diagnostic.labels { in render()
268 self.diagnostic.severity, in render()
269 self.diagnostic.code.as_deref(), in render()
270 self.diagnostic.message.as_str(), in render()
302 self.diagnostic.severity, in render()
319 self.diagnostic.severity, in render()
347 self.diagnostic.severity, in render()
362 self.diagnostic.severity, in render()
373 if labeled_files.peek().is_none() && self.diagnostic.notes.is_empty() { in render()
381 self.diagnostic.severity, in render()
394 for note in &self.diagnostic.notes { in render()
402 pub struct ShortDiagnostic<'diagnostic, FileId> {
403 diagnostic: &'diagnostic Diagnostic<FileId>, field
407 impl<'diagnostic, FileId> ShortDiagnostic<'diagnostic, FileId>
412 diagnostic: &'diagnostic Diagnostic<FileId>, in new()
414 ) -> ShortDiagnostic<'diagnostic, FileId> { in new() argument
416 diagnostic, in new()
435 let labels = self.diagnostic.labels.iter(); in render()
444 self.diagnostic.severity, in render()
445 self.diagnostic.code.as_deref(), in render()
446 self.diagnostic.message.as_str(), in render()
458 self.diagnostic.severity, in render()
459 self.diagnostic.code.as_deref(), in render()
460 self.diagnostic.message.as_str(), in render()
471 for note in &self.diagnostic.notes { in render()