File tree Expand file tree Collapse file tree 5 files changed +17
-0
lines changed
Sources/ImmutableSwift/generating/plugins Expand file tree Collapse file tree 5 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ class ISCodable: ImmutableSwiftGeneratorPlugin {
55 return false
66 }
77
8+ func imports( ) -> [ String ] {
9+ return [ " Foundation " ]
10+ }
11+
812 func superClasses( ) -> [ String ] {
913 return [ " Codable " ]
1014 }
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ class ISCoding: ImmutableSwiftGeneratorPlugin {
3838 return true
3939 }
4040
41+ func imports( ) -> [ String ] {
42+ return [ " Foundation " ]
43+ }
44+
4145 func superClasses( ) -> [ String ] {
4246 return [ " NSObject " , " NSCoding " ]
4347 }
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ class ISCopying: ImmutableSwiftGeneratorPlugin {
55 return true
66 }
77
8+ func imports( ) -> [ String ] {
9+ return [ " Foundation " ]
10+ }
11+
812 func superClasses( ) -> [ String ] {
913 return [ " NSCopying " ]
1014 }
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ class ISHashable: ImmutableSwiftGeneratorPlugin {
55 return false
66 }
77
8+ func imports( ) -> [ String ] {
9+ return [ " Foundation " ]
10+ }
11+
812 func superClasses( ) -> [ String ] {
913 return [ " Hashable " ]
1014 }
Original file line number Diff line number Diff line change 11protocol ImmutableSwiftGeneratorPlugin {
22 static var Name : String { get }
33 func shouldUseClass( ) -> Bool
4+ func imports( ) -> [ String ]
45 func superClasses( ) -> [ String ]
56 func postVariableDefinition( _ datamodel: DataModel ) -> String
67 func postConstructor( _ datamodel: DataModel ) -> String
You can’t perform that action at this time.
0 commit comments