Lines Matching refs:Offs
52 FileOffset Offs; in insert() local
53 if ((!afterToken && !canInsert(loc, Offs)) || in insert()
54 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert()
59 addInsert(loc, Offs, text, beforePreviousInsertions); in insert()
73 FileOffset Offs; in insertFromRange() local
74 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange()
75 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange()
86 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange()
91 FileOffset Offs; in remove() local
93 if (!canRemoveRange(range, Offs, Len)) { in remove()
98 addRemove(range.getBegin(), Offs, Len); in remove()
119 FileOffset Offs; in replace() local
121 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
126 addRemove(range.getBegin(), Offs, Len); in replace()
127 addInsert(range.getBegin(), Offs, text, false); in replace()
169 FileOffset Offs; in replaceText() local
171 if (!canReplaceText(loc, replacementText, Offs, Len)) { in replaceText()
176 addRemove(loc, Offs, Len); in replaceText()
177 addInsert(loc, Offs, text, false); in replaceText()
181 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, in addInsert() argument
189 data.Offset = Offs; in addInsert()
195 void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, in addInsertFromRange() argument
204 data.Offset = Offs; in addInsertFromRange()
212 FileOffset Offs, unsigned Len) { in addRemove() argument
219 data.Offset = Offs; in addRemove()
282 bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
285 if (act.Offset.getFID() == Offs.getFID() && in canInsertInOffset()
286 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()).starts_with(text); in canReplaceText()