-
Notifications
You must be signed in to change notification settings - Fork 248
fix for SwiftSyntaxParser changes #268
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
Conversation
@allevato not sure who is the maintainer, could you add a reviewer if you know? thanks |
Why is |
The |
Interesting, @ahoppen should we keep |
This should be merged ASAP, because the
(Tested on 2021.10.03 07:55 GMT-4, M1 Macbook Pro) |
I think we should not move |
But Or maybe you suggest that |
At first I felt that
I think there would be value to this but it doesn't specifically help SwiftSyntax in isolation, and that SwiftSyntax probably isn't the right place for it. For example:
If I adopted this approach, I'd be creating a third (at least?) diagnostics engine among Swift projects—that new one, plus the one in SwiftSyntax, plus the one in tools-support-core that's used by swift-driver and SPM. That makes me think this is useful functionality that should be shared by all three, somewhere. But it's also important to keep So... here's a bolder idea: maybe the whole concept of a diagnostic engine/consumers shouldn't live in |
Seems like a good idea that has better separation of concerns 👍 |
Filed https://bugs.swift.org/browse/SR-15280 to keep track of moving I would suggest to merge this PR to unblock |
I'm still concerned with the amount of changes in this PR that would most likely have to be reverted after changes for SR-15280; churn that other clients may also have to deal with and revert, could we move the type in SwiftSyntax module for now? |
Coming back around to this, I'm going to close this in favor of #270. Instead of staying coupled to the This sets us up to make some nice improvements later, like:
|
This PR updates the imports to handle the separation of SwiftSyntax and SwiftSyntaxParser:
swiftlang/swift-syntax#309