Skip to content

Commit

Permalink
Fix tagging in scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow committed Feb 20, 2024
1 parent d815b27 commit 28fd11a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class TaggingPlugin(val global: Global) extends Plugin {
case ZioTaggingTarget(t1, t2, t3) =>
q"$costCenterModule.withChildCostCenter[$t1,$t2,$t3]($name)($tree)($traceModule.empty)"
case ZStreamTaggingTarget(t1, t2, t3) =>
println(name)
q"$costCenterModule.withChildCostCenterStream[$t1,$t2,$t3]($name)($tree)($traceModule.empty)"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ object TaggingPhase extends PluginPhase {
def unapply(tp: Tree[Type])(using Context): Option[TaggingTarget] =
tp.tpe.dealias match {
case AppliedType(at, t1 :: t2 :: t3 :: Nil) if at.isRef(zioTypeRef.symbol) => Some(ZioTaggingTarget(t1, t2, t3))
case AppliedType(at, t1 :: t2 :: t3 :: Nil) if at.isRef(zioTypeRef.symbol) => Some(ZStreamTaggingTarget(t1, t2, t3))
case AppliedType(at, t1 :: t2 :: t3 :: Nil) if at.isRef(zStreamTypeRef.symbol) => Some(ZStreamTaggingTarget(t1, t2, t3))
case _ => None
}

Expand Down

0 comments on commit 28fd11a

Please sign in to comment.