-
Notifications
You must be signed in to change notification settings - Fork 441
Introduce FixIt.Change API that replaces the child of a syntax node #2758
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
Introduce FixIt.Change API that replaces the child of a syntax node #2758
Conversation
I don't know if I've got the direction right, anyways I just gave a try. |
da96362
to
d65c034
Compare
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.
Very nice stuff.
Could you also add an entry to the 601 release notes? Adding a new case to FixIt.Change
is technically source breaking because clients might exhaustively switch over it.
Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift
Outdated
Show resolved
Hide resolved
d65c034
to
3796e79
Compare
Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift
Show resolved
Hide resolved
3796e79
to
6ff3c32
Compare
@swift-ci Please test |
Head branch was pushed to by a user without write access
6ff3c32
to
8676b36
Compare
Fixed the type checker issue, please test again. |
@swift-ci please test |
@swift-ci Please test Windows |
…tional child node with a proper node - introduced `ReplacingChildData` as the type-erased payload for `.replaceChild` - added an entry to 601.md describing this API-breaking change
8676b36
to
1c4c1cd
Compare
I figured that older Swift versions wouldn't compile for |
@swift-ci Please test |
The CI prompt seems to have failed again ;( |
@swift-ci Please test |
Adding a new case to |
It'd be a great idea, but I wonder how could I orchestrate the version bump across two projects? |
We can test the PRs together using Cross Repository Testing and then we’ll merge them at the same time. |
@swift-ci Please test |
@swift-ci Please test Linux |
fix #2205