chimney icon indicating copy to clipboard operation
chimney copied to clipboard

Allow sealed subtype/enum rename

Open MateuszKubuszok opened this issue 8 months ago • 0 comments

Allow something like

enum Foo:
  case Baz, Baz1
enum Bar:
  case Baz, Baz2

foo.into[Bar].withSealedSubtypeRenamed[Foo.Baz1.type, Foo.Baz2.type].transform
foo.into[Bar].withEnumCaseRenamed[Foo.Baz1.type, Foo.Baz2.type].transform

Implementation would require:

  • adding new case in runtime.TransformerOverride
  • adding new methods in DSL
  • adding new type in ChimneyTypes
  • parsing it by macros in TransformationConfiguration
  • using it in SealedToSealedRule
  • testing

MateuszKubuszok avatar Oct 18 '23 11:10 MateuszKubuszok