Skip to content

[parse-sil] Refactor huge per op code parsing switch into its own method. #29169

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

gottesmm
Copy link
Contributor

Done using Xcode's refactoring engine! Should be NFC.

I am going to turn this method into a visitor on the op code.

NOTE: Xcode's refactoring engine messd with the whitespace, so I also ran this
through git-clang-format.


Just done while I was bored last night. We have talked about doing this a long time since it is impossible to separate the rest of the functionality from the method from the huge switch.

…hod.

Done using Xcode's refactoring engine! Should be NFC.

I am going to turn this method into a visitor on the op code.

NOTE: Xcode's refactoring engine messd with the whitespace, so I also ran this
through git-clang-format.
@gottesmm gottesmm requested a review from atrick January 13, 2020 21:28
@gottesmm
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice first step. It's impossible to tell if any functionality changed but if it was automated then we can assume it's NFC. Thanks.

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ce2a081

@gottesmm
Copy link
Contributor Author

Linux failure was the infamous dispatch overlay thing.

@gottesmm
Copy link
Contributor Author

@swift-ci test linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ce2a081

@gottesmm
Copy link
Contributor Author

@swift-ci test linux platform

@gottesmm gottesmm merged commit b4b8f64 into swiftlang:master Jan 14, 2020
@gottesmm gottesmm deleted the pr-bb85c6dcf2969bae076e9d10f9c7e078e7be0cde branch January 14, 2020 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants