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

Introduce Visit for IReadOnlyList<T> #31065

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Introduce Visit for IReadOnlyList<T> #31065

merged 1 commit into from
Jun 12, 2023

Conversation

roji
Copy link
Member

@roji roji commented Jun 11, 2023

ExpressionVisitor contains various methods for working with lists of expressions (e.g. Visit over a collection), these are very useful for when a node contains a list of sub-nodes.

However, these methods work with the standard ReadOnlyCollection, which for some reason we don't use in our custom expression types - we use IReadOnlyList<SqlExpression>. So this introduces extension methods that duplicate the built-in ones, but for that.

@roji roji merged commit 56b547a into dotnet:main Jun 12, 2023
7 checks passed
@roji roji deleted the VisitAndConvert branch June 12, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants