-
Notifications
You must be signed in to change notification settings - Fork 332
feat(swift-language-service): implement De Morgan's Law code action #2406
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
23aa7f9 to
8e68f62
Compare
ahoppen
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.
Thanks a lot! The algorithm looks great! 🤩 I left some smaller comments inline.
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
083d4b2 to
7f2ab55
Compare
7f2ab55 to
caab951
Compare
|
@ahoppen should be good to review |
ahoppen
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.
Very nice. I have a few more small comments inline.
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
caab951 to
4b996e8
Compare
Signed-off-by: Karan <[email protected]>
Signed-off-by: Karan <[email protected]>
4ff0bb1 to
3eecf94
Compare
3eecf94 to
874aeb0
Compare
ahoppen
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.
Also: When #2414 is merged, you can add the new refactoring action to the documentation
Sources/SwiftLanguageService/CodeActions/ApplyDeMorganLaw.swift
Outdated
Show resolved
Hide resolved
ahoppen
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.
Let’s 🚢 it
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
fixes: #1569 mostly works but not sure what to do with many edge cases and has a todo for switch statements, also this will probably have conflicts with #2406 marking as draft till that merges and i can resolve the conflicts. https://github.com/user-attachments/assets/a6d07f9d-6f09-4330-8cd0-2d24bd6973fb --------- Signed-off-by: Karan <[email protected]>
fixes: #1243
previous/reference pr: #1552
Summary
Screen.Recording.2026-01-03.at.17.03.42.mov