/third_party/rust/crates/codespan/codespan-reporting/src/term/ |
H A D | views.rs | 58 line_index: usize, in get_or_insert_line() 62 self.lines.entry(line_index).or_insert_with(|| Line { in get_or_insert_line() 90 let start_line_index = files.line_index(label.file_id, label.range.start)?; 93 let end_line_index = files.line_index(label.file_id, label.range.end)?; 216 for line_index in (start_line_index + 1)..end_line_index { 217 let line_range = files.line_range(label.file_id, line_index)?; 218 let line_number = files.line_number(label.file_id, line_index)?; 222 let line = labeled_file.get_or_insert_line(line_index, line_range, line_number); 230 line_index - start_line_index <= self.config.start_context_lines 233 end_line_index - line_index < [all...] |
/third_party/rust/crates/codespan/codespan-reporting/src/ |
H A D | files.rs | 113 fn line_index(&'a self, id: Self::FileId, byte_index: usize) -> Result<usize, Error>; in name() functions 127 fn line_number(&'a self, id: Self::FileId, line_index: usize) -> Result<usize, Error> { in name() 128 Ok(line_index + 1) in name() 144 line_index: usize, in name() 148 let line_range = self.line_range(id, line_index)?; in name() 157 let line_index = self.line_index(id, byte_index)?; in location() 160 line_number: self.line_number(id, line_index)?, 161 column_number: self.column_number(id, line_index, byte_index)?, 166 fn line_range(&'a self, id: Self::FileId, line_index 334 fn line_index(&self, (): (), byte_index: usize) -> Result<usize, Error> { line_index() functions 400 fn line_index(&self, file_id: usize, byte_index: usize) -> Result<usize, Error> { line_index() functions [all...] |
/third_party/rust/crates/codespan/codespan-reporting/examples/ |
H A D | custom_files.rs | 59 fn line_start(&self, line_index: usize) -> Result<usize, files::Error> { in line_start() 62 match line_index.cmp(&self.line_starts.len()) { in line_start() 65 .get(line_index) in line_start() 70 given: line_index, in line_start() 136 fn line_index(&self, file_id: FileId, byte_index: usize) -> Result<usize, files::Error> { in line_index() functions 146 line_index: usize, in line_range() 149 let line_start = file.line_start(line_index)?; in line_range() 150 let next_line_start = file.line_start(line_index + 1)?; in line_range()
|
/third_party/rust/crates/codespan/codespan/src/ |
H A D | file.rs | 131 line_index: impl Into<LineIndex>, in line_span() 133 self.get(file_id).line_span(line_index.into()) in line_span() 144 /// assert_eq!(files.line_index(file_id, 0), LineIndex::from(0)); 145 /// assert_eq!(files.line_index(file_id, 7), LineIndex::from(1)); 146 /// assert_eq!(files.line_index(file_id, 8), LineIndex::from(1)); 147 /// assert_eq!(files.line_index(file_id, 9), LineIndex::from(2)); 148 /// assert_eq!(files.line_index(file_id, 100), LineIndex::from(3)); 150 pub fn line_index(&self, file_id: FileId, byte_index: impl Into<ByteIndex>) -> LineIndex { in line_index() functions 151 self.get(file_id).line_index(byte_index.into()) in line_index() 243 fn line_index( in source() functions 326 fn line_index(&self, byte_index: ByteIndex) -> LineIndex { line_index() functions [all...] |
/third_party/node/deps/v8/src/wasm/ |
H A D | jump-table-assembler.h | 63 uint32_t line_index = slot_offset / kJumpTableLineSize; in SlotOffsetToIndex() local 66 return line_index * kJumpTableSlotsPerLine + in SlotOffsetToIndex() 72 uint32_t line_index = slot_index / kJumpTableSlotsPerLine; in JumpSlotIndexToOffset() local 75 return line_index * kJumpTableLineSize + line_offset; in JumpSlotIndexToOffset()
|
/third_party/skia/modules/skottie/src/text/ |
H A D | SkottieShaper.cpp | 260 uint32_t line_index) { in commitFragementedRun() 297 line_index, is_whitespace(fUTF8[clusters[i]]) in commitFragementedRun() 256 commitFragementedRun(const RunRec& rec, const SkGlyphID* glyphs, const SkPoint* pos, const uint32_t* clusters, uint32_t line_index) commitFragementedRun() argument
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_sidebar.py | 498 for line_index, line in enumerate(input.split('\n')): 499 if line_index > 0:
|
/third_party/skia/third_party/externals/angle2/src/tests/ |
H A D | capture_replay_tests.py | 348 for line_index in reversed(range(len(lines))): 350 if "[ RUN ]" in lines[line_index]:
|