-
Notifications
You must be signed in to change notification settings - Fork 502
Textformat reserved #1774
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
Textformat reserved #1774
Conversation
c9d6a12 to
a1e486d
Compare
|
Ok, this should be good to go. I've broken it down into a sequence of commits to try and make review easier so you can skip some of the generation related ones that otherwise would pretty noisy. |
|
Also did the trick of sorting/merging ranges that are connecting that we do for extensions. I don't think it's worth exploiting this in the skip case since it won't be common, mostly doing this because it could make the generated data smaller since it means we can merge the ranges. |
c4adb65 to
146e690
Compare
|
Fixes #1771 |
146e690 to
149e38a
Compare
|
@tbkka any chance you can take a look since most of the TextFormat support and |
The spec calls for this, so just building out the matching support. - Update `_NameMap` to track reserved numbers and names and check if a value is reserved. - Update `TextFormatScanner` to skip reserved numbers/names.
Also clear `text_format_failure_list_swift.txt` as the tests now pass with the additional data.
Factor the code out of the extension range code so it can be used also for the reserved fields. This won't really make an performance difference, but by merging them the generate data could end up being smaller.
Extend the test file to so it also has things to be merged.
149e38a to
1b47f44
Compare
|
fyi - rebased over the CL updating the Swift min version. |
|
@tbkka was that thumbs up a looks good or an i'll try to look? |
No description provided.