Lines Matching defs:Hint
151 const FixItHint &Hint = Info.getFixItHint(Idx);
153 if (Hint.CodeToInsert.empty()) {
154 if (Hint.InsertFromRange.isValid())
155 commit.insertFromRange(Hint.RemoveRange.getBegin(),
156 Hint.InsertFromRange, /*afterToken=*/false,
157 Hint.BeforePreviousInsertions);
159 commit.remove(Hint.RemoveRange);
161 if (Hint.RemoveRange.isTokenRange() ||
162 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd())
163 commit.replace(Hint.RemoveRange, Hint.CodeToInsert);
165 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert,
166 /*afterToken=*/false, Hint.BeforePreviousInsertions);