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:
Markus Emrich 2018-09-12 13:13:18 -07:00 committed by Facebook Github Bot
parent e6032c8107
commit 853b0377fc
2 changed files with 5 additions and 0 deletions

View file

@ -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:[],

View file

@ -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 [];
},