Good news!
We have completely reworked a lot of cases related to dealing with parentheses.
Our approach is:
- Keeping any existing parentheses present in the original Objective-C code
- Removing obviously redundant parentheses (examples: around `if` expressions, function arguments, or `#define` macros converted to functions)
If you are curious about how easy or difficult this was, take a look at these related JIRA issues:
- SWC-353: Eliminate redundant parentheses in metadata translations
- SWC-651: Missing parentheses in metadata translations
- SWC-451: Fix missing parentheses around unwrapped optional expression if an indexer is used
- SWC-495: Eliminate redundant parentheses in box expressions
- SWC-524: Keep parentheses in property expressions
- SWC-662: Missing parentheses around ternary expressions
- SWC-1024: Missing parentheses around `for` range expressions
- SWC-455: Eliminate redundant parentheses in combined protocol declarations
- SWC-529: Eliminate redundant parentheses in #define statements converted to functions
Comments
0 comments
Please sign in to leave a comment.