# Can swift macro create separate implementation of a declaration?

**URL:** <https://forums.swift.org/t/can-swift-macro-create-separate-implementation-of-a-declaration/65397>\
**Category:** Discussion\
**Tags:** macros\
**Created:** [June 7, 2023, 9:30am UTC](https://forums.swift.org/t/can-swift-macro-create-separate-implementation-of-a-declaration/65397 "2023-06-07T09:30:25Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![erneestoc](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/erneestoc/32/30357_2.png) [@erneestoc](https://forums.swift.org/u/erneestoc)\
**Post date:** [June 13, 2023, 11:55pm UTC](https://forums.swift.org/t/can-swift-macro-create-separate-implementation-of-a-declaration/65397/16 "2023-06-13T23:55:28Z")

</div>

I'm willing to put the effort. I'd love to have a tool like [mockingbird](https://github.com/birdrides/mockingbird) or [swiftymocky](https://github.com/MakeAWishFoundation/SwiftyMocky) but without needing a separate codegen tool.

On the example above, if protocol inherited from other protocol, would we have a way to check the members of the protocol is inheriting from?

---

_[View the full topic](https://forums.swift.org/t/can-swift-macro-create-separate-implementation-of-a-declaration/65397)._
