diff --git a/plugin/src/main/scala-3/BetterToStringPlugin.scala b/plugin/src/main/scala-3/BetterToStringPlugin.scala index e90a5fc..72858e6 100644 --- a/plugin/src/main/scala-3/BetterToStringPlugin.scala +++ b/plugin/src/main/scala-3/BetterToStringPlugin.scala @@ -38,7 +38,11 @@ final class BetterToStringPluginPhase extends PluginPhase: override val phaseName: String = "better-tostring-phase" override val runsAfter: Set[String] = Set(org.polyvariant.AfterPhase.name) - override def transformTemplate(t: Template)(using ctx: Context): Tree = + override def transformTemplate( + t: Template + )( + using ctx: Context + ): Tree = val clazz = ctx.owner.asClass val ownerOwner = ctx.owner.owner diff --git a/plugin/src/main/scala-3/Scala3CompilerApi.scala b/plugin/src/main/scala-3/Scala3CompilerApi.scala index 86d18a2..c999584 100644 --- a/plugin/src/main/scala-3/Scala3CompilerApi.scala +++ b/plugin/src/main/scala-3/Scala3CompilerApi.scala @@ -46,7 +46,9 @@ object Scala3CompilerApi: final case class ClassContext(t: Template, clazz: ClassSymbol): def mapTemplate(f: Template => Template): ClassContext = copy(t = f(t)) - def instance(using Context): Scala3CompilerApi = new Scala3CompilerApi: + def instance( + using Context + ): Scala3CompilerApi = new Scala3CompilerApi: def params(clazz: Clazz): List[Param] = clazz.t.body.collect {