-
Notifications
You must be signed in to change notification settings - Fork 831
Simplify checking format strings #14804
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
Simplify checking format strings #14804
Conversation
2e8eadf to
46b040a
Compare
psfinaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there already tests for this?
Good question. There are various tests related to this, but I am not 100% confident that their coverage is good enough. I'll check it out, although atm struggling with building fsharp locally |
KevinRansom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Seems like checking for end line flex and whether string is interpolated is not necessary for splitting format string into fragments, although I am not entirely sure about either of those.
28d1874 to
67919b1
Compare
0101
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely like the simplification. Would be nice to see about the tests though. Maybe try putting some errors there and see if any tests fail? If not we probably need to add some.
Seems like checking for end line flex and whether string is interpolated is not necessary for splitting format string into fragments, although I am not entirely sure about either of those.