Skip to content

Move raw syntax nodes from gyb to code gen #1326

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

Conversation

kimdv
Copy link
Contributor

@kimdv kimdv commented Feb 8, 2023

No description provided.

@kimdv kimdv requested a review from ahoppen as a code owner February 8, 2023 14:45
@kimdv kimdv force-pushed the kimdv/move-raw-syntax-nodes-from-gyb-to-code-gen branch 2 times, most recently from b26a19e to 4ecc624 Compare February 8, 2023 18:09
Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Nice. This is looking great. I’ve got one wish (which you can ignore) and one comment inline.

Really looking forward to the day *.gyb is gone 😍

}
}
+ (node.collectionElementChoices?.isEmpty == false
? [("Element", node.collectionElementChoices!.map { choice -> (String, String) in (SYNTAX_NODE_MAP[choice]!.swiftSyntaxKind, SYNTAX_NODE_MAP[choice]!.name) })]
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice if we had something like ChildKind for Node as well so we don’t need to force-unwrap here. But I think that’s something we can more easily do once we’ve gotten rid of all the gyb. In general, I feel like there’s a lot we can clean up in the SyntaxSupport module once we’re no longer tied to the Python design.

@kimdv kimdv force-pushed the kimdv/move-raw-syntax-nodes-from-gyb-to-code-gen branch from 4ecc624 to a1898d6 Compare February 9, 2023 10:46
@kimdv
Copy link
Contributor Author

kimdv commented Feb 9, 2023

@swift-ci please test

@kimdv kimdv force-pushed the kimdv/move-raw-syntax-nodes-from-gyb-to-code-gen branch from a1898d6 to ac46401 Compare February 9, 2023 10:57
@kimdv
Copy link
Contributor Author

kimdv commented Feb 9, 2023

@swift-ci please test

@kimdv kimdv merged commit d689cae into swiftlang:main Feb 9, 2023
@kimdv kimdv deleted the kimdv/move-raw-syntax-nodes-from-gyb-to-code-gen branch February 9, 2023 13:55
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