Home
last modified time | relevance | path

Searched refs:line_index (Results 1 - 8 of 8) sorted by relevance

/third_party/rust/crates/codespan/codespan-reporting/src/term/
H A Dviews.rs58 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 Dfiles.rs113 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 Dcustom_files.rs59 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 Dfile.rs131 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 Djump-table-assembler.h63 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 DSkottieShaper.cpp260 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 Dtest_sidebar.py498 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 Dcapture_replay_tests.py348 for line_index in reversed(range(len(lines))):
350 if "[ RUN ]" in lines[line_index]:

Completed in 6 milliseconds