Skip to content

Commit

Permalink
Improve macro transformation to remove annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Jul 6, 2022
1 parent 94a6b92 commit 5997eac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ private[scio] object MagnoliaMacros {
super.transform(
q"$caseClass($typeName, $isObject, $isValueClass, $parametersArray, Array.empty[Any], Array.empty[Any], Array.empty[Any])"
)
case q"Param.apply[$tc_, $t_, $p_]($name, $typeNameParam, $idx, $isRepeated, $typeclassParam, $defaultVal, $_, $_, $_)" =>
case q"Param.apply[$TC, $T, $P]($name, $typeNameParam, $idx, $isRepeated, $typeclassParam, $defaultVal, $_, $_, $_)" =>
super.transform(
q"_root_.magnolia1.Param[$tc_, $t_, $p_]($name, $typeNameParam, $idx, $isRepeated, $typeclassParam, $defaultVal, Array.empty[Any], Array.empty[Any], Array.empty[Any])"
q"_root_.magnolia1.Param[$TC, $T, $P]($name, $typeNameParam, $idx, $isRepeated, $typeclassParam, $defaultVal, Array.empty[Any], Array.empty[Any], Array.empty[Any])"
)
case q"new SealedTrait($typeName, $subtypesArray, $_, $_, $_)" =>
super.transform(
q"new _root_.magnolia1.SealedTrait($typeName, $subtypesArray, Array.empty[Any], Array.empty[Any], Array.empty[Any])"
)
case q"Subtype[$tc_, $t_, $s_]($name, $idx, $_, $_, $_, $tc, $isType, $asType)" =>
case q"Subtype[$TC, $T, $S]($name, $idx, $_, $_, $_, $tc, $isType, $asType)" =>
super.transform(
q"_root_.magnolia1.Subtype[$tc_, $t_,$s_]($name, $idx, Array.empty[Any], Array.empty[Any], Array.empty[Any], $tc, $isType, $asType)"
q"_root_.magnolia1.Subtype[$TC, $T, $S]($name, $idx, Array.empty[Any], Array.empty[Any], Array.empty[Any], $tc, $isType, $asType)"
)
case t =>
super.transform(t)
Expand Down

0 comments on commit 5997eac

Please sign in to comment.