mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-23 09:18:29 +00:00
Update the iglistdiffable remodel plugin to the latest open source changes
Reviewed By: tommycrush Differential Revision: D9790337 fbshipit-source-id: e841c30f647dbb67e77bcba39906f7cf0f41907f
This commit is contained in:
parent
e6032c8107
commit
853b0377fc
2 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ const ObjectSpecPlugin = IGListDiffable.createPlugin();
|
|||
|
||||
function igListDiffableIsEqualMethod():ObjC.Method {
|
||||
return {
|
||||
preprocessors:[],
|
||||
belongsToProtocol:Maybe.Just('IGListDiffable'),
|
||||
code: ['return [self isEqual:object];'],
|
||||
comments:[],
|
||||
|
|
@ -47,6 +48,7 @@ function igListDiffableIsEqualMethod():ObjC.Method {
|
|||
|
||||
function igListDiffableDiffIdentifierMethodWithCode(code:string):ObjC.Method {
|
||||
return {
|
||||
preprocessors:[],
|
||||
belongsToProtocol:Maybe.Just<string>('IGListDiffable'),
|
||||
code: [code],
|
||||
comments:[],
|
||||
|
|
|
|||
|
|
@ -211,6 +211,9 @@ export function createPlugin():ObjectSpec.Plugin {
|
|||
diffIdentifierMethod(objectType)
|
||||
];
|
||||
},
|
||||
macros: function(valueType:ObjectSpec.Type):ObjC.Macro[] {
|
||||
return [];
|
||||
},
|
||||
properties: function(objectType:ObjectSpec.Type):ObjC.Property[] {
|
||||
return [];
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue