Lines Matching refs:Offs

54   FileOffset Offs;  in insert()  local
55 if ((!afterToken && !canInsert(loc, Offs)) || in insert()
56 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert()
61 addInsert(loc, Offs, text, beforePreviousInsertions); in insert()
75 FileOffset Offs; in insertFromRange() local
76 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange()
77 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange()
88 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange()
93 FileOffset Offs; in remove() local
95 if (!canRemoveRange(range, Offs, Len)) { in remove()
100 addRemove(range.getBegin(), Offs, Len); in remove()
121 FileOffset Offs; in replace() local
123 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
128 addRemove(range.getBegin(), Offs, Len); in replace()
129 addInsert(range.getBegin(), Offs, text, false); in replace()
171 FileOffset Offs; in replaceText() local
173 if (!canReplaceText(loc, replacementText, Offs, Len)) { in replaceText()
178 addRemove(loc, Offs, Len); in replaceText()
179 addInsert(loc, Offs, text, false); in replaceText()
183 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, in addInsert() argument
191 data.Offset = Offs; in addInsert()
197 void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, in addInsertFromRange() argument
206 data.Offset = Offs; in addInsertFromRange()
214 FileOffset Offs, unsigned Len) { in addRemove() argument
221 data.Offset = Offs; in addRemove()
284 bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
287 if (act.Offset.getFID() == Offs.getFID() && in canInsertInOffset()
288 Offs > act.Offset && Offs < act.Offset.getWithOffset(act.Length)) in canInsertInOffset()
294 return Editor->canInsertInOffset(OrigLoc, Offs); in canInsertInOffset()
298 FileOffset &Offs, unsigned &Len) { in canRemoveRange() argument
319 Offs = FileOffset(beginInfo.first, beginInfo.second); in canRemoveRange()
325 FileOffset &Offs, unsigned &Len) { in canReplaceText() argument
328 if (!canInsert(loc, Offs)) in canReplaceText()
333 StringRef file = SourceMgr.getBufferData(Offs.getFID(), &invalidTemp); in canReplaceText()
338 return file.substr(Offs.getOffset()).startswith(text); in canReplaceText()