Home
last modified time | relevance | path

Searched refs:line_index (Results 1 – 13 of 13) sorted by relevance

/third_party/rust/crates/codespan/codespan-reporting/src/
Dfiles.rs113 fn line_index(&'a self, id: Self::FileId, byte_index: usize) -> Result<usize, Error>; in line_index() method
127 fn line_number(&'a self, id: Self::FileId, line_index: usize) -> Result<usize, Error> { in line_number()
128 Ok(line_index + 1) in line_number()
144 line_index: usize, in column_number()
148 let line_range = self.line_range(id, line_index)?; in column_number()
157 let line_index = self.line_index(id, byte_index)?; in location() localVariable
160 line_number: self.line_number(id, line_index)?, in location()
161 column_number: self.column_number(id, line_index, byte_index)?, in location()
166 fn line_range(&'a self, id: Self::FileId, line_index: usize) -> Result<Range<usize>, Error>; in line_range()
299 fn line_start(&self, line_index: usize) -> Result<usize, Error> { in line_start()
[all …]
/third_party/rust/crates/codespan/codespan/src/
Dfile.rs131 line_index: impl Into<LineIndex>, in line_span()
133 self.get(file_id).line_span(line_index.into()) in line_span()
150 pub fn line_index(&self, file_id: FileId, byte_index: impl Into<ByteIndex>) -> LineIndex { in line_index() function
151 self.get(file_id).line_index(byte_index.into()) in line_index()
243 fn line_index(&self, id: FileId, byte_index: usize) -> Result<usize, Error> { in line_index() function
244 Ok(self.line_index(id, byte_index as u32).to_usize()) in line_index()
250 line_index: usize, in line_range()
252 let span = self.line_span(id, line_index as u32)?; in line_range()
302 fn line_start(&self, line_index: LineIndex) -> Result<ByteIndex, Error> { in line_start()
305 match line_index.cmp(&self.last_line_index()) { in line_start()
[all …]
/third_party/rust/crates/codespan/codespan-reporting/src/term/
Dviews.rs58 line_index: usize, in render()
62 self.lines.entry(line_index).or_insert_with(|| Line { in render()
90 let start_line_index = files.line_index(label.file_id, label.range.start)?; in render()
93 let end_line_index = files.line_index(label.file_id, label.range.end)?; in render()
216 for line_index in (start_line_index + 1)..end_line_index { in render()
217 let line_range = files.line_range(label.file_id, line_index)?; in render()
218 let line_number = files.line_number(label.file_id, line_index)?; in render()
222 let line = labeled_file.get_or_insert_line(line_index, line_range, line_number); in render()
230 line_index - start_line_index <= self.config.start_context_lines in render()
233 end_line_index - line_index <= self.config.end_context_lines; in render()
[all …]
/third_party/rust/crates/codespan/codespan-reporting/examples/
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() method
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-reporting/tests/snapshots/
Dterm__multiline_overlapping__rich_no_color.snap8 1 │ ╭ match line_index.compare(self.last_line_index()) {
9 2 │ │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
15 5 │ │ │ given: line_index,
Dterm__multiline_overlapping__rich_color.snap8 {fg:Blue}1{/} {fg:Blue}│{/} {fg:Blue}╭{/} match line_index.compare(self.last_line_index()…
9 …e}│{/} {fg:Blue}│{/} Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
15 {fg:Blue}5{/} {fg:Blue}│{/} {fg:Red}│{/} {fg:Blue}│{/} {fg:Red} given: line_index,{/}
/third_party/rust/crates/codespan/codespan-lsp/src/
Dlib.rs48 let line_index = files.line_index(file_id, byte_index)?; in byte_index_to_position() localVariable
49 let line_span = files.line_range(file_id, line_index).unwrap(); in byte_index_to_position()
63 location_to_position(line_str, line_index, column, byte_index) in byte_index_to_position()
/third_party/node/deps/v8/src/wasm/
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/rust/crates/codespan/codespan-reporting/
DCHANGELOG.md192 1 │ ╭ match line_index.compare(self.last_line_index()) {
193 2 │ │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
196 5 │ │ given: line_index,
202 2 │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
208 5 │ │ given: line_index,
222 1 │ ╭ match line_index.compare(self.last_line_index()) {
223 2 │ │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
229 5 │ │ │ given: line_index,
/third_party/skia/modules/skottie/src/text/
DSkottieShaper.cpp260 uint32_t line_index) { in commitFragementedRun() argument
297 line_index, is_whitespace(fUTF8[clusters[i]]) in commitFragementedRun()
/third_party/python/Lib/idlelib/idle_test/
Dtest_sidebar.py501 for line_index, line in enumerate(input.split('\n')):
502 if line_index > 0:
/third_party/skia/third_party/externals/angle2/src/tests/
Dcapture_replay_tests.py348 for line_index in reversed(range(len(lines))):
350 if "[ RUN ]" in lines[line_index]:
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h61686 unsigned int line_index; member