/third_party/rust/crates/codespan/codespan-reporting/src/ |
D | diagnostic.rs | 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>>, [all …]
|
D | files.rs | 88 type FileId: 'a + Copy + PartialEq; typedef 95 fn name(&'a self, id: Self::FileId) -> Result<Self::Name, Error>; in name() 98 fn source(&'a self, id: Self::FileId) -> Result<Self::Source, Error>; in source() 113 fn line_index(&'a self, id: Self::FileId, byte_index: usize) -> Result<usize, Error>; in line_index() argument 127 fn line_number(&'a self, id: Self::FileId, line_index: usize) -> Result<usize, Error> { in line_number() argument 143 id: Self::FileId, in column_number() argument 156 fn location(&'a self, id: Self::FileId, byte_index: usize) -> Result<Location, Error> { in location() argument 166 fn line_range(&'a self, id: Self::FileId, line_index: usize) -> Result<Range<usize>, Error>; in line_range() argument 322 type FileId = (); typedef 388 type FileId = usize; typedef
|
D | term.rs | 91 diagnostic: &Diagnostic<F::FileId>, in emit() argument
|
/third_party/rust/crates/codespan/codespan-reporting/src/term/ |
D | views.rs | 19 pub struct RichDiagnostic<'diagnostic, 'config, FileId> { 20 diagnostic: &'diagnostic Diagnostic<FileId>, 24 impl<'diagnostic, 'config, FileId> RichDiagnostic<'diagnostic, 'config, FileId> 26 FileId: Copy + PartialEq, 29 diagnostic: &'diagnostic Diagnostic<FileId>, in new() argument 31 ) -> RichDiagnostic<'diagnostic, 'config, FileId> { in new() 37 files: &'files impl Files<'files, FileId = FileId>, in render() argument 41 FileId: 'files, in render() 45 struct LabeledFile<'diagnostic, FileId> { in render() 46 file_id: FileId, in render() [all …]
|
/third_party/rust/crates/codespan/codespan/src/ |
D | file.rs | 12 pub struct FileId(NonZeroU32); struct 14 impl FileId { implementation 21 fn new(index: usize) -> FileId { in new() argument 22 FileId(NonZeroU32::new(index as u32 + Self::OFFSET).expect("file index cannot be stored")) in new() 64 pub fn add(&mut self, name: impl Into<OsString>, source: Source) -> FileId { in add() argument 65 let file_id = FileId::new(self.files.len()); in add() 74 pub fn update(&mut self, file_id: FileId, source: Source) { in update() argument 80 fn get(&self, file_id: FileId) -> &File<Source> { in get() 86 fn get_mut(&mut self, file_id: FileId) -> &mut File<Source> { in get_mut() 102 pub fn name(&self, file_id: FileId) -> &OsStr { in name() [all …]
|
D | lib.rs | 17 pub use crate::file::{FileId, Files};
|
/third_party/rust/crates/codespan/codespan-reporting/examples/ |
D | custom_files.rs | 79 pub struct FileId(u32); struct 98 ) -> Option<FileId> { in add() argument 101 let file_id = FileId(u32::try_from(self.files.len()).ok()?); in add() 116 fn get(&self, file_id: FileId) -> Result<&File, files::Error> { in get() 124 type FileId = FileId; typedef 128 fn name(&self, file_id: FileId) -> Result<&str, files::Error> { in name() 132 fn source(&self, file_id: FileId) -> Result<&str, files::Error> { in source() 136 fn line_index(&self, file_id: FileId, byte_index: usize) -> Result<usize, files::Error> { in line_index() argument 145 file_id: FileId, in line_range() argument 160 greetings: Vec<(files::FileId, Range<usize>)>, [all …]
|
/third_party/rust/crates/codespan/codespan-lsp/src/ |
D | lib.rs | 39 file_id: F::FileId, in byte_index_to_position() argument 68 file_id: F::FileId, in byte_span_to_range() argument 109 file_id: F::FileId, in position_to_byte_index() argument 128 file_id: F::FileId, in range_to_byte_span() argument
|
/third_party/rust/crates/codespan/codespan-reporting/tests/support/ |
D | mod.rs | 12 pub diagnostics: Vec<Diagnostic<F::FileId>>,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/ |
D | IPDBSession.h | 82 getSourceFileById(uint32_t FileId) const = 0;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/DIA/ |
D | DIASession.h | 77 getSourceFileById(uint32_t FileId) const override;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/Native/ |
D | NativeSession.h | 85 getSourceFileById(uint32_t FileId) const override;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/DIA/ |
D | DIASession.cpp | 354 DIASession::getSourceFileById(uint32_t FileId) const { in getSourceFileById() 356 if (S_OK != Session->findFileById(FileId, &LocatedFile)) in getSourceFileById()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
D | NativeSession.cpp | 181 NativeSession::getSourceFileById(uint32_t FileId) const { in getSourceFileById()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
D | CodeViewDebug.cpp | 517 unsigned FileId = 0; in maybeRecordLocation() local 519 FileId = CurFn->LastFileId; in maybeRecordLocation() 521 FileId = CurFn->LastFileId = maybeRecordFile(DL->getFile()); in maybeRecordLocation() 546 OS.EmitCVLocDirective(FuncId, FileId, DL.getLine(), DL.getCol(), in maybeRecordLocation() 868 unsigned FileId = maybeRecordFile(SP->getFile()); in emitInlineeLinesSubsection() local 875 OS.EmitCVFileChecksumOffsetDirective(FileId); in emitInlineeLinesSubsection() 899 unsigned FileId = maybeRecordFile(Site.Inlinee->getFile()); in emitInlinedCallSite() local 902 OS.EmitCVInlineLinetableDirective(Site.SiteFuncId, FileId, StartLineNum, in emitInlinedCallSite()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 356 bool parseCVFileId(int64_t &FileId, StringRef DirectiveName);
|