[libSyntax] Rename getAbsolutePosition-related methods for more clarity

This commit is contained in:
Alex Hoppen
2018-05-21 16:40:48 -07:00
parent 21dc447e89
commit 705f5b79a2
8 changed files with 23 additions and 23 deletions

View File

@@ -476,7 +476,7 @@ bool verifyReusedRegions(ByteBasedSourceRangeSet ExpectedReparseRegions,
SourceFile *SF) {
// We always expect the EOF token to be reparsed. Don't complain about it.
auto Eof = SF->getSyntaxRoot().getChild(SourceFileSyntax::Cursor::EOFToken);
auto EofNodeStart = Eof->getAbsolutePositionWithLeadingTrivia().getOffset();
auto EofNodeStart = Eof->getAbsolutePositionBeforeLeadingTrivia().getOffset();
if (ExpectedReparseRegions.Ranges.back().End >= EofNodeStart) {
// If the last expected reparse region already covers part of the eof
// leading trivia, extended it