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