mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[libSyntax] Rename getAbsolutePosition-related methods for more clarity
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user