Skip to content

Commit

Permalink
chore: better rephrasing of the comment
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Martres <[email protected]>
  • Loading branch information
hamzaremmal and smarter authored Feb 4, 2025
1 parent a641aeb commit 5f1656e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
// We discard the private val representing a case accessor. We only enter the case accessor def.
// We do need to load these symbols to read properly unpickle the annotations on the symbol (see sbt-test/scala2-compat/i19421).
!flags.isAllOf(CaseAccessor | PrivateLocal, butNot = Method) &&
// We don't enter Value Classes' extension methods from pickles, but we do
// generate in the ExtensionMethods phase, at the same time as we do for Scala 3
// Skip entering extension methods: they will be recreated by the ExtensionMethods phase.
// Same trick is used by tasty-query (see
//https://github.com/scalacenter/tasty-query/blob/fdefadcabb2f21d5c4b71f728b81c68f6fddcc0f/tasty-query/shared/src/main/scala/tastyquery/reader/pickles/PickleReader.scala#L261-L273
//)
Expand Down

0 comments on commit 5f1656e

Please sign in to comment.