Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Update scalafmt-core to 3.4.1 #362

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.4.0
version = 3.4.1
maxColumn = 120
runner.dialect = scala3
fileOverride {
Expand Down
28 changes: 14 additions & 14 deletions core/src/main/scala-2/com/softwaremill/diffx/ModifyMacro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@ object ModifyMacro {

c.Expr[List[ModifyPath]](
q"${pathEls.collect {
case TermPathElement(c) => q"_root_.com.softwaremill.diffx.ModifyPath.Field(${c.decodedName.toString})"
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachLeft" =>
makeSubtype(symbolOf[Left[Any, Any]])
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachRight" =>
makeSubtype(symbolOf[Right[Any, Any]])
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "each" =>
q"_root_.com.softwaremill.diffx.ModifyPath.Each"
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachKey" =>
q"_root_.com.softwaremill.diffx.ModifyPath.EachKey"
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachValue" =>
q"_root_.com.softwaremill.diffx.ModifyPath.EachValue"
case SubtypePathElement(subtype) =>
makeSubtype(subtype)
}}"
case TermPathElement(c) => q"_root_.com.softwaremill.diffx.ModifyPath.Field(${c.decodedName.toString})"
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachLeft" =>
makeSubtype(symbolOf[Left[Any, Any]])
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachRight" =>
makeSubtype(symbolOf[Right[Any, Any]])
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "each" =>
q"_root_.com.softwaremill.diffx.ModifyPath.Each"
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachKey" =>
q"_root_.com.softwaremill.diffx.ModifyPath.EachKey"
case FunctorPathElement(_, method, _ @_*) if method.decodedName.toString == "eachValue" =>
q"_root_.com.softwaremill.diffx.ModifyPath.EachValue"
case SubtypePathElement(subtype) =>
makeSubtype(subtype)
}}"
)
}

Expand Down