• Home
  • Raw
  • Download

Lines Matching refs:BeginOffs

133   FileOffset BeginOffs = InsertFromRangeOffs;  in commitInsertFromRange()  local
134 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange()
135 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs); in commitInsertFromRange()
144 if (BeginOffs == B) in commitInsertFromRange()
147 if (BeginOffs < E) { in commitInsertFromRange()
148 if (BeginOffs > B) { in commitInsertFromRange()
149 BeginOffs = E; in commitInsertFromRange()
161 if (BeginOffs < B) { in commitInsertFromRange()
163 StringRef text = getSourceText(BeginOffs, B, Invalid); in commitInsertFromRange()
169 BeginOffs = E; in commitInsertFromRange()
172 if (BeginOffs < EndOffs) { in commitInsertFromRange()
174 StringRef text = getSourceText(BeginOffs, EndOffs, Invalid); in commitInsertFromRange()
184 FileOffset BeginOffs, unsigned Len) { in commitRemove() argument
188 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitRemove()
189 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs); in commitRemove()
198 if (BeginOffs < E) in commitRemove()
207 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove()
215 if (BeginOffs < B) { in commitRemove()
217 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove()
218 TopBegin = BeginOffs; in commitRemove()
231 if (B == BeginOffs) in commitRemove()
432 StringRef EditedSource::getSourceText(FileOffset BeginOffs, FileOffset EndOffs, in getSourceText() argument
434 assert(BeginOffs.getFID() == EndOffs.getFID()); in getSourceText()
435 assert(BeginOffs <= EndOffs); in getSourceText()
436 SourceLocation BLoc = SourceMgr.getLocForStartOfFile(BeginOffs.getFID()); in getSourceText()
437 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset()); in getSourceText()
440 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset()); in getSourceText()