-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Gardening] Do not store start/end line in SingleRawComment #36920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
Build failed |
Build failed |
Ah, sorry. I pulled this out of a larger change but messed it up - fixing now. |
cd8d76b
to
854626b
Compare
@swift-ci please test |
@@ -61,71 +61,53 @@ SingleRawComment::SingleRawComment(CharSourceRange Range, | |||
const SourceManager &SourceMgr) | |||
: Range(Range), RawText(SourceMgr.extractText(Range)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RawText and ColumnIndent are the only two fields on RawComment that are actually always valid. Range is only set when it isn't a deserialized RawComment. Ideally we'd remove Range from here as well, but it's used in a fair few places... This change is a middle ground where just StartLine/EndLine are removed.
Build failed |
Build failed |
854626b
to
502ccc7
Compare
@swift-ci please test |
The start and end lines were only used while constructing the comments, so move the line tracking into that method instead of storing it in each comment.
502ccc7
to
52de30c
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS platform |
The start and end lines were only used while constructing the comments,
so move the line tracking into that method instead of storing it in each
comment.