Skip to content

Add a convenience initializer to combine unexpected nodes #1005

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

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 22, 2022

As discussed in #998 (comment)

@ahoppen
Copy link
Member Author

ahoppen commented Oct 22, 2022

@swift-ci Please test

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

I find this better than what we have, but I was honestly less concerned with the mapping/combining and more concerned with the fact we create nodes that we then just drop on the floor (but keep in memory). I know this doesn't really matter, it's just the principle of it all 😅.

// MARK: Combining unexpected nodes

/// Implementation detail of `RawUnexpectedNodesSyntax.init(combining:arena)`.
protocol UnexpectedNodsCombinable {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
protocol UnexpectedNodsCombinable {
protocol UnexpectedNodesCombinable {

@ahoppen ahoppen force-pushed the ahoppen/combine-unexpected branch from 4121ce3 to 877ae05 Compare October 24, 2022 22:10
@ahoppen
Copy link
Member Author

ahoppen commented Oct 24, 2022

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/combine-unexpected branch from 877ae05 to 11595d1 Compare October 26, 2022 08:28
@ahoppen ahoppen force-pushed the ahoppen/combine-unexpected branch from 11595d1 to 631d5c5 Compare October 26, 2022 10:14
@ahoppen
Copy link
Member Author

ahoppen commented Oct 26, 2022

@swift-ci Please test

@ahoppen ahoppen merged commit 13287bb into swiftlang:main Oct 26, 2022
@ahoppen ahoppen deleted the ahoppen/combine-unexpected branch October 26, 2022 12:43
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