/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | versionCache.ts | 6 function lineColToPosition(lineIndex: server.LineIndex, line: number, col: number) { 10 …function validateEdit(lineIndex: server.LineIndex, sourceText: string, position: number, deleteLen… 33 const { lines } = server.LineIndex.linesFromText(testContent); 36 const lineIndex = new server.LineIndex(); 50 const lineIndex = new server.LineIndex(); 58 …const { lines } = server.LineIndex.linesFromText("function foo() {\n\ndsa\n\n}\n\nfo(dsa\n\n\n … 59 const lineIndex = new server.LineIndex(); 105 ({ lines, lineMap } = server.LineIndex.linesFromText(testContent)); 108 const lineIndex = new server.LineIndex(); 207 let lineIndex: server.LineIndex; [all …]
|
/third_party/rust/crates/codespan/codespan/src/ |
D | file.rs | 7 use crate::{ByteIndex, ColumnIndex, LineIndex, LineOffset, Location, RawIndex, Span}; 131 line_index: impl Into<LineIndex>, in line_span() argument 150 pub fn line_index(&self, file_id: FileId, byte_index: impl Into<ByteIndex>) -> LineIndex { in line_index() argument 302 fn line_start(&self, line_index: LineIndex) -> Result<ByteIndex, Error> { in line_start() 315 fn last_line_index(&self) -> LineIndex { in last_line_index() argument 316 LineIndex::from(self.line_starts.len() as RawIndex) in last_line_index() 319 fn line_span(&self, line_index: LineIndex) -> Result<Span, Error> { in line_span() 326 fn line_index(&self, byte_index: ByteIndex) -> LineIndex { in line_index() argument 329 Ok(line) => LineIndex::from(line as u32), in line_index() 330 Err(next_line) => LineIndex::from(next_line as u32 - 1), in line_index()
|
D | location.rs | 4 use crate::{ColumnIndex, LineIndex}; 11 pub line: LineIndex, 18 pub fn new(line: impl Into<LineIndex>, column: impl Into<ColumnIndex>) -> Location { in new() argument
|
D | index.rs | 18 pub struct LineIndex(pub RawIndex); struct 20 impl LineIndex { implementation 39 impl Default for LineIndex { implementation 40 fn default() -> LineIndex { in default() 41 LineIndex(0) in default() 45 impl fmt::Debug for LineIndex { implementation 53 impl fmt::Display for LineIndex { implementation 455 impl_index!(LineIndex, LineOffset);
|
D | lib.rs | 21 pub use crate::index::{LineIndex, LineNumber, LineOffset};
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/ |
D | GCOV.cpp | 740 for (uint32_t LineIndex = 0; LineIndex < Line.LastLine || !AllLines.empty(); in print() local 741 ++LineIndex) { in print() 743 FunctionLines::const_iterator FuncsIt = Line.Functions.find(LineIndex); in print() 748 BlockLines::const_iterator BlocksIt = Line.Blocks.find(LineIndex); in print() 752 AllLines.printNext(CovOS, LineIndex + 1); in print() 803 AllLines.printNext(CovOS, LineIndex + 1); in print() 809 if (Block->getLastLine() != LineIndex + 1) in print() 812 printBlockInfo(CovOS, *Block, LineIndex, BlockNo); in print() 852 uint32_t LineIndex, uint32_t &BlockNo) const { in printBlockInfo() argument 857 OS << format("%5u-block %2u\n", LineIndex + 1, BlockNo++); in printBlockInfo()
|
/third_party/typescript/src/server/ |
D | scriptVersionCache.ts | 40 readonly lineIndex = new LineIndex(); 68 const lm = LineIndex.linesFromText(insertedText); 355 const snap = new LineIndexSnapshot(0, svc, new LineIndex()); 357 const lm = LineIndex.linesFromText(script); 364 …ly version: number, readonly cache: ScriptVersionCache, readonly index: LineIndex, readonly change… 387 export class LineIndex { class 426 this.root = LineIndex.buildTreeFromBottom(leaves); 472 edit(pos: number, deleteLength: number, newText?: string): LineIndex { 476 this.load(LineIndex.linesFromText(newText).lines);
|
/third_party/skia/experimental/sktext/include/ |
D | Interface.h | 179 Position firstInLinePosition(PositionType positionType, LineIndex lineIndex) const; 180 Position lastInLinePosition(PositionType positionType, LineIndex lineIndex) const;
|
D | Text.h | 326 Position firstInLinePosition(PositionType positionType, LineIndex lineIndex) const; 327 Position lastInLinePosition(PositionType positionType, LineIndex lineIndex) const;
|
D | Types.h | 71 typedef size_t LineIndex; typedef
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | raw_ostream.cpp | 366 size_t LineIndex = 0; in operator <<() local 393 llvm::write_hex(*this, Offset + LineIndex, HPS, OffsetWidth); in operator <<() 427 LineIndex += Line.size(); in operator <<() 428 if (LineIndex < Size) in operator <<()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | raw_ostream.cpp | 406 size_t LineIndex = 0; in operator <<() local 433 llvm::write_hex(*this, Offset + LineIndex, HPS, OffsetWidth); in operator <<() 467 LineIndex += Line.size(); in operator <<() 468 if (LineIndex < Size) in operator <<()
|
/third_party/skia/experimental/sktext/src/ |
D | Text.cpp | 579 LineIndex lineIndex = 0ul; in visit() 858 Position SelectableText::firstInLinePosition(PositionType positionType, LineIndex lineIndex) const { in firstInLinePosition() 864 Position SelectableText::lastInLinePosition(PositionType positionType, LineIndex lineIndex) const { in lastInLinePosition()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | GCOV.h | 448 uint32_t LineIndex, uint32_t &BlockNo) const;
|
/third_party/skia/experimental/sktext/tests/ |
D | SelectableText.cpp | 112 for (LineIndex lineIndex = 0; lineIndex < selectableText->countLines(); ++lineIndex) { in UNIX_ONLY_TEST()
|