use class context for workaround in GenerateFieldOrPropertyHandler.generateMemberPrototypes