Skip to content

Commit

Permalink
Prefix type param matchers with tp
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Jul 6, 2022
1 parent 5997eac commit 57b8d18
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[$tpTC, $tpT, $tpP]($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[$tpTC, $tpT, $tpP]($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[$tpTC, $tpT, $tpS]($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[$tpTC, $tpT, $tpS]($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 57b8d18

Please sign in to comment.