Lines Matching refs:Offs

53   FileOffset Offs;  in insert()  local
54 if ((!afterToken && !canInsert(loc, Offs)) || in insert()
55 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert()
60 addInsert(loc, Offs, text, beforePreviousInsertions); in insert()
74 FileOffset Offs; in insertFromRange() local
75 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange()
76 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange()
87 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange()
92 FileOffset Offs; in remove() local
94 if (!canRemoveRange(range, Offs, Len)) { in remove()
99 addRemove(range.getBegin(), Offs, Len); in remove()
120 FileOffset Offs; in replace() local
122 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
127 addRemove(range.getBegin(), Offs, Len); in replace()
128 addInsert(range.getBegin(), Offs, text, false); in replace()
170 FileOffset Offs; in replaceText() local
172 if (!canReplaceText(loc, replacementText, Offs, Len)) { in replaceText()
177 addRemove(loc, Offs, Len); in replaceText()
178 addInsert(loc, Offs, text, false); in replaceText()
182 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, in addInsert() argument
190 data.Offset = Offs; in addInsert()
196 void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, in addInsertFromRange() argument
205 data.Offset = Offs; in addInsertFromRange()
213 FileOffset Offs, unsigned Len) { in addRemove() argument
220 data.Offset = Offs; in addRemove()
283 bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
286 if (act.Offset.getFID() == Offs.getFID() && in canInsertInOffset()
287 Offs > act.Offset && Offs < act.Offset.getWithOffset(act.Length)) in canInsertInOffset()
293 return Editor->canInsertInOffset(OrigLoc, Offs); in canInsertInOffset()
297 FileOffset &Offs, unsigned &Len) { in canRemoveRange() argument
318 Offs = FileOffset(beginInfo.first, beginInfo.second); in canRemoveRange()
324 FileOffset &Offs, unsigned &Len) { in canReplaceText() argument
327 if (!canInsert(loc, Offs)) in canReplaceText()
332 StringRef file = SourceMgr.getBufferData(Offs.getFID(), &invalidTemp); in canReplaceText()
337 return file.substr(Offs.getOffset()).startswith(text); in canReplaceText()