Lines Matching refs:FileId
65 pub struct Label<FileId> {
69 pub file_id: FileId,
77 impl<FileId> Label<FileId> {
81 file_id: FileId, in new() argument
83 ) -> Label<FileId> { in new() argument
95 pub fn primary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in primary() argument
102 pub fn secondary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in secondary() argument
107 pub fn with_message(mut self, message: impl Into<String>) -> Label<FileId> { in with_message() argument
119 pub struct Diagnostic<FileId> {
133 pub labels: Vec<Label<FileId>>,
139 impl<FileId> Diagnostic<FileId> {
141 pub fn new(severity: Severity) -> Diagnostic<FileId> { in new() argument
154 pub fn bug() -> Diagnostic<FileId> { in bug()
161 pub fn error() -> Diagnostic<FileId> { in error()
168 pub fn warning() -> Diagnostic<FileId> { in warning()
175 pub fn note() -> Diagnostic<FileId> { in note()
182 pub fn help() -> Diagnostic<FileId> { in help()
187 pub fn with_code(mut self, code: impl Into<String>) -> Diagnostic<FileId> { in with_code() argument
193 pub fn with_message(mut self, message: impl Into<String>) -> Diagnostic<FileId> { in with_message() argument
199 pub fn with_labels(mut self, mut labels: Vec<Label<FileId>>) -> Diagnostic<FileId> { in with_labels() argument
205 pub fn with_notes(mut self, mut notes: Vec<String>) -> Diagnostic<FileId> { in with_notes() argument