Thanks for the responses. This is somewhat useful, but not necessarily efficient.
However, I think developers should have an easy way from within Xcode to view the code synthesized by the compiler.
The simplest use case is debugging. I like the fact that the compiler synthesizes a lot of boilerplate code for me. However, I would like to have a better understanding of what it's doing, rather than blindly trusting the compiler to do the right thing. Maybe the compiler isn't always going to do what I want, and today this is difficult to validate.
A more specific use case is development of an
Encoder or a
Decoder. Today, I have no idea what the compiler is synthesizing. I can only come to an educated guess by strategically breaking on functions defined by the protocols. I would love to be able to step right into a call of
decode, but instead there are these dark zones the debugger skips because they were synthesized. A lot of head scratching goes as the debugger magically skips over this codes.