Lines Matching refs:BeginOffs
149 FileOffset BeginOffs = InsertFromRangeOffs; in commitInsertFromRange() local
150 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange()
151 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs); in commitInsertFromRange()
160 if (BeginOffs == B) in commitInsertFromRange()
163 if (BeginOffs < E) { in commitInsertFromRange()
164 if (BeginOffs > B) { in commitInsertFromRange()
165 BeginOffs = E; in commitInsertFromRange()
177 if (BeginOffs < B) { in commitInsertFromRange()
179 StringRef text = getSourceText(BeginOffs, B, Invalid); in commitInsertFromRange()
185 BeginOffs = E; in commitInsertFromRange()
188 if (BeginOffs < EndOffs) { in commitInsertFromRange()
190 StringRef text = getSourceText(BeginOffs, EndOffs, Invalid); in commitInsertFromRange()
200 FileOffset BeginOffs, unsigned Len) { in commitRemove() argument
204 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitRemove()
205 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs); in commitRemove()
214 if (BeginOffs < E) in commitRemove()
223 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove()
231 if (BeginOffs < B) { in commitRemove()
233 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove()
234 TopBegin = BeginOffs; in commitRemove()
247 if (B == BeginOffs) in commitRemove()
454 StringRef EditedSource::getSourceText(FileOffset BeginOffs, FileOffset EndOffs, in getSourceText() argument
456 assert(BeginOffs.getFID() == EndOffs.getFID()); in getSourceText()
457 assert(BeginOffs <= EndOffs); in getSourceText()
458 SourceLocation BLoc = SourceMgr.getLocForStartOfFile(BeginOffs.getFID()); in getSourceText()
459 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset()); in getSourceText()
462 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset()); in getSourceText()