@@ -29,8 +29,8 @@ using namespace swift;
29
29
namespace swift {
30
30
struct ExpectedFixIt {
31
31
const char *StartLoc, *EndLoc; // The loc of the {{ and }}'s.
32
- unsigned StartCol ;
33
- unsigned EndCol;
32
+ LineColumnRange Range ;
33
+
34
34
std::string Text;
35
35
};
36
36
} // end namespace swift
@@ -247,9 +247,10 @@ bool DiagnosticVerifier::checkForFixIt(const ExpectedFixIt &Expected,
247
247
continue ;
248
248
249
249
CharSourceRange Range = ActualFixIt.getRange ();
250
- if (SM.getColumnInBuffer (Range.getStart (), BufferID) != Expected.StartCol )
250
+ if (SM.getColumnInBuffer (Range.getStart (), BufferID) !=
251
+ Expected.Range .StartCol )
251
252
continue ;
252
- if (SM.getColumnInBuffer (Range.getEnd (), BufferID) != Expected.EndCol )
253
+ if (SM.getColumnInBuffer (Range.getEnd (), BufferID) != Expected.Range . EndCol )
253
254
continue ;
254
255
255
256
return true ;
@@ -544,12 +545,12 @@ DiagnosticVerifier::Result DiagnosticVerifier::verifyFile(unsigned BufferID) {
544
545
ExpectedFixIt FixIt;
545
546
FixIt.StartLoc = OpenLoc;
546
547
FixIt.EndLoc = CloseLoc;
547
- if (StartColStr.getAsInteger (10 , FixIt.StartCol )) {
548
+ if (StartColStr.getAsInteger (10 , FixIt.Range . StartCol )) {
548
549
addError (StartColStr.data (),
549
550
" invalid column number in fix-it verification" );
550
551
continue ;
551
552
}
552
- if (EndColStr.getAsInteger (10 , FixIt.EndCol )) {
553
+ if (EndColStr.getAsInteger (10 , FixIt.Range . EndCol )) {
553
554
addError (EndColStr.data (),
554
555
" invalid column number in fix-it verification" );
555
556
continue ;
0 commit comments