Skip to content

Commit

Permalink
Reformat with scalafmt 3.8.0
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
scala-steward committed Feb 20, 2024
1 parent 6ae4108 commit f093258
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion plugin/src/main/scala-3/BetterToStringPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion plugin/src/main/scala-3/Scala3CompilerApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f093258

Please sign in to comment.