Lines Matching refs:BeginOffs

150   FileOffset BeginOffs = InsertFromRangeOffs;  in commitInsertFromRange()  local
151 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange()
152 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs); in commitInsertFromRange()
161 if (BeginOffs == B) in commitInsertFromRange()
164 if (BeginOffs < E) { in commitInsertFromRange()
165 if (BeginOffs > B) { in commitInsertFromRange()
166 BeginOffs = E; in commitInsertFromRange()
178 if (BeginOffs < B) { in commitInsertFromRange()
180 StringRef text = getSourceText(BeginOffs, B, Invalid); in commitInsertFromRange()
186 BeginOffs = E; in commitInsertFromRange()
189 if (BeginOffs < EndOffs) { in commitInsertFromRange()
191 StringRef text = getSourceText(BeginOffs, EndOffs, Invalid); in commitInsertFromRange()
201 FileOffset BeginOffs, unsigned Len) { in commitRemove() argument
205 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitRemove()
206 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs); in commitRemove()
215 if (BeginOffs < E) in commitRemove()
224 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove()
232 if (BeginOffs < B) { in commitRemove()
234 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove()
235 TopBegin = BeginOffs; in commitRemove()
248 if (B == BeginOffs) in commitRemove()
455 StringRef EditedSource::getSourceText(FileOffset BeginOffs, FileOffset EndOffs, in getSourceText() argument
457 assert(BeginOffs.getFID() == EndOffs.getFID()); in getSourceText()
458 assert(BeginOffs <= EndOffs); in getSourceText()
459 SourceLocation BLoc = SourceMgr.getLocForStartOfFile(BeginOffs.getFID()); in getSourceText()
460 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset()); in getSourceText()
463 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset()); in getSourceText()