Home
last modified time | relevance | path

Searched refs:LabelStyle (Results 1 – 4 of 4) sorted by relevance

/third_party/rust/crates/codespan/codespan-reporting/src/term/
Drenderer.rs5 use crate::diagnostic::{LabelStyle, Severity};
22 pub type SingleLabel<'diagnostic> = (LabelStyle, Range<usize>, &'diagnostic str);
63 type Underline = (LabelStyle, VerticalBound);
237 multi_labels: &[(usize, LabelStyle, MultiLabel<'_>)], in render_snippet_source() argument
283 *ls == LabelStyle::Primary && is_overlapping(range, &column_range) in render_snippet_source()
285 *ls == LabelStyle::Primary in render_snippet_source()
295 self.set_color(self.styles().label(severity, LabelStyle::Primary))?; in render_snippet_source()
443 Some(LabelStyle::Primary) => Some(self.chars().single_primary_caret), in render_snippet_source()
444 Some(LabelStyle::Secondary) => Some(self.chars().single_secondary_caret), in render_snippet_source()
607 multi_labels: &[(usize, LabelStyle, MultiLabel<'_>)], in render_snippet_empty() argument
[all …]
Dconfig.rs3 use crate::diagnostic::{LabelStyle, Severity};
146 pub fn label(&self, severity: Severity, label_style: LabelStyle) -> &ColorSpec { in label()
148 (LabelStyle::Primary, Severity::Bug) => &self.primary_label_bug, in label()
149 (LabelStyle::Primary, Severity::Error) => &self.primary_label_error, in label()
150 (LabelStyle::Primary, Severity::Warning) => &self.primary_label_warning, in label()
151 (LabelStyle::Primary, Severity::Note) => &self.primary_label_note, in label()
152 (LabelStyle::Primary, Severity::Help) => &self.primary_label_help, in label()
153 (LabelStyle::Secondary, _) => &self.secondary_label, in label()
Dviews.rs3 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()
/third_party/rust/crates/codespan/codespan-reporting/src/
Ddiagnostic.rs55 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()