• Home
  • Raw
  • Download

Lines Matching refs:Offs

48   FileOffset Offs;  in insert()  local
49 if ((!afterToken && !canInsert(loc, Offs)) || in insert()
50 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert()
55 addInsert(loc, Offs, text, beforePreviousInsertions); in insert()
69 FileOffset Offs; in insertFromRange() local
70 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange()
71 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange()
82 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange()
87 FileOffset Offs; in remove() local
89 if (!canRemoveRange(range, Offs, Len)) { in remove()
94 addRemove(range.getBegin(), Offs, Len); in remove()
115 FileOffset Offs; in replace() local
117 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
122 addRemove(range.getBegin(), Offs, Len); in replace()
123 addInsert(range.getBegin(), Offs, text, false); in replace()
165 FileOffset Offs; in replaceText() local
167 if (!canReplaceText(loc, replacementText, Offs, Len)) { in replaceText()
172 addRemove(loc, Offs, Len); in replaceText()
173 addInsert(loc, Offs, text, false); in replaceText()
177 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, in addInsert() argument
185 data.Offset = Offs; in addInsert()
191 void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, in addInsertFromRange() argument
200 data.Offset = Offs; in addInsertFromRange()
208 FileOffset Offs, unsigned Len) { in addRemove() argument
215 data.Offset = Offs; in addRemove()
280 bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
284 if (act.Offset.getFID() == Offs.getFID() && in canInsertInOffset()
285 Offs > act.Offset && Offs < act.Offset.getWithOffset(act.Length)) in canInsertInOffset()
292 return Editor->canInsertInOffset(OrigLoc, Offs); in canInsertInOffset()
296 FileOffset &Offs, unsigned &Len) { in canRemoveRange() argument
317 Offs = FileOffset(beginInfo.first, beginInfo.second); in canRemoveRange()
323 FileOffset &Offs, unsigned &Len) { in canReplaceText() argument
326 if (!canInsert(loc, Offs)) in canReplaceText()
331 StringRef file = SourceMgr.getBufferData(Offs.getFID(), &invalidTemp); in canReplaceText()
336 return file.substr(Offs.getOffset()).startswith(text); in canReplaceText()