Skip to content
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

Split imports binder into its own binder. #51452

Conversation

AlekseyTs
Copy link
Contributor

This is a refactoring, no behavior change intended.

This is a refactoring, no behavior change intended.
@AlekseyTs AlekseyTs requested review from cston and a team February 24, 2021 21:52
@AlekseyTs
Copy link
Contributor Author

@cston, @dotnet/roslyn-compiler Please review.

@AlekseyTs
Copy link
Contributor Author

@cston, @dotnet/roslyn-compiler Please review.

@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler Please review, need a second sign-off.

@333fred
Copy link
Member

333fred commented Feb 25, 2021

Looking.

_current = GetNextScope(binder.Next);
}
// Return a scope for the next Binder that supports extension methods.
_current = GetNextScope(binder.Next);
Copy link
Member

@333fred 333fred Feb 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: it looks like this whole if/else could be simplified to _current = GetNextScope(_current.Binder?.Next ?? _binder); #WontFix

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 2). One suggested refactoring, but that's fine as a followup.

@AlekseyTs AlekseyTs merged commit d474d01 into dotnet:features/GlobalUsingDirective Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants