Home | History | Annotate | Download | only in Edit

Lines Matching refs:Offs

31 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) {
32 FileEditsTy::iterator FA = getActionForOffset(Offs);
34 if (FA->first != Offs)
54 FileOffset Offs, StringRef text,
56 if (!canInsertInOffset(OrigLoc, Offs))
69 FileEdit &FA = FileEdits[Offs];
86 FileOffset Offs,
140 return commitInsert(OrigLoc, Offs, StrVec.str(), beforePreviousInsertions);
268 SourceLocation Loc, FileOffset offs,
276 StringRef buffer = SM.getBufferData(offs.getFID(), &Invalid);
280 unsigned begin = offs.getOffset();
305 StringRef text, FileOffset offs, unsigned len,
307 assert(!offs.getFID().isInvalid());
308 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID());
309 Loc = Loc.getLocWithOffset(offs.getOffset());
313 adjustRemoval(SM, LangOpts, Loc, offs, len, text);
346 FileOffset offs = I->first;
348 assert(offs >= CurEnd);
350 if (offs == CurEnd) {
358 CurOffs = offs;
386 EditedSource::getActionForOffset(FileOffset Offs) {
387 FileEditsTy::iterator I = FileEdits.upper_bound(Offs);
394 if (Offs >= B && Offs < E)