Skip to content

Commit

Permalink
huh
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Mar 23, 2024
1 parent 9fa03c2 commit 8f310dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/lsp/src/main/scala/json.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import langoustine.*
import upickle.default.*
import scala.util.NotGiven

// formating:off

private[lsp] object json:
val valueReader = upickle.default.readwriter[ujson.Value]
def badMerge[T](r1: => Reader[?], rest: Reader[?]*): Reader[T] =
Expand Down Expand Up @@ -138,7 +140,6 @@ private[lsp] object Pickle:

// if macros.isMemberOfSealedHierarchy[T] then annotate(reader, macros.fullClassName[T])
// else reader

case m: Mirror.SumOf[T] =>
inline compiletime.erasedValue[T] match
case _: scala.reflect.Enum =>
Expand All @@ -151,5 +152,5 @@ private[lsp] object Pickle:
.asInstanceOf[List[Reader[? <: T]]]
Reader.merge[T](readers*)
end match
end Pickle
end macroR
end Pickle

0 comments on commit 8f310dc

Please sign in to comment.