Lines Matching refs:Diagnostic
119 pub struct Diagnostic<FileId> { struct
139 impl<FileId> Diagnostic<FileId> { impl
141 pub fn new(severity: Severity) -> Diagnostic<FileId> { in new()
142 Diagnostic { in new()
154 pub fn bug() -> Diagnostic<FileId> { in bug()
155 Diagnostic::new(Severity::Bug) in bug()
161 pub fn error() -> Diagnostic<FileId> { in error()
162 Diagnostic::new(Severity::Error) in error()
168 pub fn warning() -> Diagnostic<FileId> { in warning()
169 Diagnostic::new(Severity::Warning) in warning()
175 pub fn note() -> Diagnostic<FileId> { in note()
176 Diagnostic::new(Severity::Note) in note()
182 pub fn help() -> Diagnostic<FileId> { in help()
183 Diagnostic::new(Severity::Help) in help()
187 pub fn with_code(mut self, code: impl Into<String>) -> Diagnostic<FileId> { in with_code()
193 pub fn with_message(mut self, message: impl Into<String>) -> Diagnostic<FileId> { in with_message()
199 pub fn with_labels(mut self, labels: Vec<Label<FileId>>) -> Diagnostic<FileId> { in with_labels()
205 pub fn with_notes(mut self, notes: Vec<String>) -> Diagnostic<FileId> { in with_notes()