Home
last modified time | relevance | path

Searched defs:FileId (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/codespan/codespan-reporting/src/
Ddiagnostic.rs81 file_id: FileId, in new()
83 ) -> Label<FileId> { in new()
95 pub fn primary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in primary()
102 pub fn secondary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in secondary()
107 pub fn with_message(mut self, message: impl Into<String>) -> Label<FileId> { in with_message()
141 pub fn new(severity: Severity) -> Diagnostic<FileId> { in new()
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()
Dfiles.rs88 type FileId: 'a + Copy + PartialEq; typedef
113 fn line_index(&'a self, id: Self::FileId, byte_index: usize) -> Result<usize, Error>; in line_index()
127 fn line_number(&'a self, id: Self::FileId, line_index: usize) -> Result<usize, Error> { in line_number()
143 id: Self::FileId, in column_number()
156 fn location(&'a self, id: Self::FileId, byte_index: usize) -> Result<Location, Error> { in location()
166 fn line_range(&'a self, id: Self::FileId, line_index: usize) -> Result<Range<usize>, Error>; in line_range()
322 type FileId = (); typedef
388 type FileId = usize; typedef
Dterm.rs91 diagnostic: &Diagnostic<F::FileId>, in emit()
/third_party/rust/crates/codespan/codespan/src/
Dfile.rs12 pub struct FileId(NonZeroU32); struct
14 impl FileId { implementation
21 fn new(index: usize) -> FileId { in new()
64 pub fn add(&mut self, name: impl Into<OsString>, source: Source) -> FileId { in add()
74 pub fn update(&mut self, file_id: FileId, source: Source) { in update()
130 file_id: FileId, in line_span()
150 pub fn line_index(&self, file_id: FileId, byte_index: impl Into<ByteIndex>) -> LineIndex { in line_index()
170 file_id: FileId, in location()
219 pub fn source_slice(&self, file_id: FileId, span: impl Into<Span>) -> Result<&str, Error> { in source_slice()
229 type FileId = FileId; typedef
[all …]
/third_party/rust/crates/codespan/codespan-reporting/examples/
Dcustom_files.rs79 pub struct FileId(u32); struct
98 ) -> Option<FileId> { in add()
124 type FileId = FileId; typedef
136 fn line_index(&self, file_id: FileId, byte_index: usize) -> Result<usize, files::Error> { in line_index()
145 file_id: FileId, in line_range()
168 fn to_diagnostic(&self) -> Diagnostic<files::FileId> { in to_diagnostic()
/third_party/rust/crates/codespan/codespan-reporting/src/term/
Dviews.rs29 diagnostic: &'diagnostic Diagnostic<FileId>, in new()
37 files: &'files impl Files<'files, FileId = FileId>, in render() argument
412 diagnostic: &'diagnostic Diagnostic<FileId>, in new()
423 files: &'files impl Files<'files, FileId = FileId>, in render() argument
/third_party/rust/crates/codespan/codespan-lsp/src/
Dlib.rs39 file_id: F::FileId, in byte_index_to_position()
68 file_id: F::FileId, in byte_span_to_range()
109 file_id: F::FileId, in position_to_byte_index()
128 file_id: F::FileId, in range_to_byte_span()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DCodeViewDebug.cpp517 unsigned FileId = 0; in maybeRecordLocation() local
868 unsigned FileId = maybeRecordFile(SP->getFile()); in emitInlineeLinesSubsection() local
899 unsigned FileId = maybeRecordFile(Site.Inlinee->getFile()); in emitInlinedCallSite() local