-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Keep comments when removing unnecessary lambda expressions #76015
Keep comments when removing unnecessary lambda expressions #76015
Conversation
Is 71300 the right issue? Seems already closed and not related |
if (lastIndex < triviaList.Count && triviaList[lastIndex].IsEndOfLine()) | ||
lastIndex++; | ||
|
||
return triviaList.Take(lastIndex); |
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.
didn't quite get why we need this filtering at a glance - mind adding a comment on it?
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.
seems like its trying to get all the trivia up to the last comment and new line - but not sure why we aren't taking all the trivia?
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.
the idea is that we want to grab up through the last comment and the newline that follows and only move those over if it exists. we don't want to generally move things like when the user only has blank lines above the inner call. i will doc :)
Fixes #71300