Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 438 Bytes
<% for type in types.classes { -%>
<%_ %><%# this is a comment -%>
extension <%= type.name %>: Equatable {}
<%_ if type.annotations["showComment"] != nil { -%>
<% _%> // <%= type.name %> has Annotations
<% } -%>
func == (lhs: <%= type.name %>, rhs: <%= type.name %>) -> Bool {
<%_ for variable in type.variables { -%>
if lhs.<%= variable.name %> != rhs.<%= variable.name %> { return false }
<%_ } %>
return true
}
<% } -%>