-
Notifications
You must be signed in to change notification settings - Fork 441
Delete SyntaxTransformVisitor #2260
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
Delete SyntaxTransformVisitor #2260
Conversation
@swift-ci Please test |
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.
Will need to remove from CMake as well
Heh, I was experimenting with using this in a swift-format branch to rewrite parts of the pretty-printer 😭 What I'm in need of is a visitor where each I could coax |
Since ASTGen is no longer using it, we can delete it.
69852ca
to
0877a61
Compare
@swift-ci Please test |
Why doesn’t
The overhead shouldn’t be big. |
One of the challenges of today's implementation is that because visitation of children is handled by returning Here's the structure I'd like to have instead, using true recursion and closure-based helper methods to define scopes that ensure everything lines up: https://github.com/allevato/swift-format/blob/new-pretty-printer/Sources/SwiftFormat/PrettyPrint/NewTokenStreamCreator.swift#L340-L371 But maybe I'm overthinking this. I guess I could stick with |
Oh, I see what you mean now. Using |
@swift-ci Please test |
Since ASTGen is no longer using it, we can delete it.