FiveSheepCo / OrderedRelationship

A Swift macro taking away the pain in adding ordered relationships to SwiftData models
5 stars 1 forks source link

Update to eliminate containingClassName #2

Open e28eta opened 3 weeks ago

e28eta commented 3 weeks ago

Neat project! I think it's possible to look up the containingClassName, either now or soon: https://forums.swift.org/t/macros-accessing-the-parent-context-of-a-syntax-node-passed-to-a-macro/64443/26

It'd be a small improvement in usability, I think.

JannThomas commented 3 weeks ago

That looks really nice and easy to use. Will take a look at it and might open a PR if/when its possible. Thanks for your help!