Skip to content

[libSyntax] Generate TokenKinds.def from gyb_syntax_support #18715

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
Aug 15, 2018

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 15, 2018

It's not particularly nice to generate a .def file using gyb but this eliminates the need to declare the same tokens twice, once for the Swift side and once for the C++ side.

@ahoppen ahoppen requested review from rintaro and nkcsgexi August 15, 2018 00:20
@ahoppen
Copy link
Member Author

ahoppen commented Aug 15, 2018

@swift-ci Please smoke test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

Nice! the final piece of duplication has been removed.

PoundObjectLiteral('PoundImageLiteral', 'imageLiteral',
text='#imageLiteral', serialization_code=77,
description='color',
protocol='ExpressibleByColorLiteral'),
Copy link
Member

Choose a reason for hiding this comment

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

description and protocols are messed up.

@ahoppen
Copy link
Member Author

ahoppen commented Aug 15, 2018

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Aug 15, 2018

@swift-ci Please smoke test

@ahoppen ahoppen merged commit e8dc505 into swiftlang:master Aug 15, 2018
@ahoppen ahoppen deleted the gen-tokenkinds branch August 22, 2018 15:47
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.

3 participants