From 853b0377fc3f63402dec6efe5fa8e95850f908ef Mon Sep 17 00:00:00 2001 From: Markus Emrich Date: Wed, 12 Sep 2018 13:13:18 -0700 Subject: [PATCH] Update the iglistdiffable remodel plugin to the latest open source changes Reviewed By: tommycrush Differential Revision: D9790337 fbshipit-source-id: e841c30f647dbb67e77bcba39906f7cf0f41907f --- remodel-plugin/src/__tests__/plugins/iglistdiffable-test.ts | 2 ++ remodel-plugin/src/plugins/iglistdiffable.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/remodel-plugin/src/__tests__/plugins/iglistdiffable-test.ts b/remodel-plugin/src/__tests__/plugins/iglistdiffable-test.ts index 84f160d7..4e974353 100644 --- a/remodel-plugin/src/__tests__/plugins/iglistdiffable-test.ts +++ b/remodel-plugin/src/__tests__/plugins/iglistdiffable-test.ts @@ -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('IGListDiffable'), code: [code], comments:[], diff --git a/remodel-plugin/src/plugins/iglistdiffable.ts b/remodel-plugin/src/plugins/iglistdiffable.ts index bded4614..b1b432da 100644 --- a/remodel-plugin/src/plugins/iglistdiffable.ts +++ b/remodel-plugin/src/plugins/iglistdiffable.ts @@ -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 []; },