Insanity v0.5.2 Release Notes

  • ๐Ÿ†• New Features

    • โž• Added support for ImplicitlyUnwrappedOptional
    • actualTypeName property of Method.Parameter, Variable, Enum.Case.AssociatedValue, TupleType.Element now returns typeName if type is not a type alias
    • Enum now contains type information for its raw value type. rawType now return Type object, rawTypeName returns its TypeName
    • โž• Added annotated filter to filter by annotations
    • โž• Added negative filters counterparts
    • โž• Added support for attributes, i.e. @escaping
    • ๐Ÿ‘ Experimental support for Swift Templates

    • ๐Ÿ‘ Swift Templates are now supported

    <% for type in types.classes { %>
        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
        }
    <% } %>