Commits

Enrico Granata committed d6586cb7a78
The Mirrors Generator This is a .gyb file based upon Dave's trick of allowing boilerplate templates (r19490) As per comments, this will generate all the common cruft of getting a Mirror up and running - yes including the Reflectable conformance on the type! It could likely be extended to specify a full Mirror, either by defaulting missing parts, or by letting you specify them as arguments to the template However, since we can have other templates that use this as a foundation, those expansions might be best served being their own templates based upon this Also, the members this doesn't generate for you are usually the ones you care about when writing a Mirror, so probably passing them as arguments to this template generator would only make things look uglier/less obvious when skimming through the code Swift SVN r19534