Searched refs:LabelStyle (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/codespan-reporting/src/term/ |
D | renderer.rs | 5 use crate::diagnostic::{LabelStyle, Severity}; 22 pub type SingleLabel<'diagnostic> = (LabelStyle, Range<usize>, &'diagnostic str); 63 type Underline = (LabelStyle, VerticalBound); 236 multi_labels: &[(usize, LabelStyle, MultiLabel<'_>)], in render_snippet_source() argument 282 *ls == LabelStyle::Primary && is_overlapping(range, &column_range) in render_snippet_source() 284 *ls == LabelStyle::Primary in render_snippet_source() 294 self.set_color(self.styles().label(severity, LabelStyle::Primary))?; in render_snippet_source() 442 Some(LabelStyle::Primary) => Some(self.chars().single_primary_caret), in render_snippet_source() 443 Some(LabelStyle::Secondary) => Some(self.chars().single_secondary_caret), in render_snippet_source() 606 multi_labels: &[(usize, LabelStyle, MultiLabel<'_>)], in render_snippet_empty() argument [all …]
|
D | config.rs | 3 use crate::diagnostic::{LabelStyle, Severity}; 150 pub fn label(&self, severity: Severity, label_style: LabelStyle) -> &ColorSpec { in label() 152 (LabelStyle::Primary, Severity::Bug) => &self.primary_label_bug, in label() 153 (LabelStyle::Primary, Severity::Error) => &self.primary_label_error, in label() 154 (LabelStyle::Primary, Severity::Warning) => &self.primary_label_warning, in label() 155 (LabelStyle::Primary, Severity::Note) => &self.primary_label_note, in label() 156 (LabelStyle::Primary, Severity::Help) => &self.primary_label_help, in label() 157 (LabelStyle::Secondary, _) => &self.secondary_label, in label()
|
D | views.rs | 3 use crate::diagnostic::{Diagnostic, LabelStyle}; 52 max_label_style: LabelStyle, in render() 78 multi_labels: Vec<(usize, LabelStyle, MultiLabel<'diagnostic>)>, in render() 436 for label in labels.filter(|label| label.style == LabelStyle::Primary) { in render()
|
/external/rust/crates/codespan-reporting/src/ |
D | diagnostic.rs | 55 pub enum LabelStyle { enum 67 pub style: LabelStyle, 80 style: LabelStyle, in new() argument 96 Label::new(LabelStyle::Primary, file_id, range) in primary() 103 Label::new(LabelStyle::Secondary, file_id, range) in secondary()
|