chimney
chimney copied to clipboard
Allow sealed subtype/enum rename
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