-
Notifications
You must be signed in to change notification settings - Fork 381
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
Provide a public API to compare precedence groups #2258
Labels
enhancement
New feature or request
Comments
Tracked in Apple’s issue tracker as rdar://116416740 |
I wouldn’t be opposed to adding a public function to perform this comparison on |
Thanks! It's not an urgent need but I'll tinker with it and put up a PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I had a small use case in swift-format where I wanted to check the precedence of an operator relative to another one (apple/swift-format#647).
Unfortunately there's no public API to do this from
OperatorTable
; the logic is insidePrecedenceGraph
, which is internal. Can we have this API or something like it in public form?The text was updated successfully, but these errors were encountered: