@@ -50,8 +50,8 @@ final case class AccessMessage(
5050 sealedValue : dotty.tools.dotc.semanticdb.AccessMessage .SealedValue = dotty.tools.dotc.semanticdb.AccessMessage .SealedValue .Empty
5151 ) extends SemanticdbGeneratedMessage derives CanEqual {
5252 @ transient @ sharable
53- private [this ] var __serializedSizeCachedValue : _root_.scala.Int = 0
54- private [this ] def __computeSerializedValue (): _root_.scala.Int = {
53+ private [this ] var __serializedSizeMemoized : _root_.scala.Int = 0
54+ private [this ] def __computeSerializedSize (): _root_.scala.Int = {
5555 var __size = 0
5656 if (sealedValue.privateAccess.isDefined) {
5757 val __value = sealedValue.privateAccess.get
@@ -84,12 +84,13 @@ final case class AccessMessage(
8484 __size
8585 }
8686 override def serializedSize : _root_.scala.Int = {
87- var read = __serializedSizeCachedValue
88- if (read == 0 ) {
89- read = __computeSerializedValue()
90- __serializedSizeCachedValue = read
87+ var __size = __serializedSizeMemoized
88+ if (__size == 0 ) {
89+ __size = __computeSerializedSize() + 1
90+ __serializedSizeMemoized = __size
9191 }
92- read
92+ __size - 1
93+
9394 }
9495 def writeTo (`_output__` : SemanticdbOutputStream ): _root_.scala.Unit = {
9596 sealedValue.privateAccess.foreach { __v =>
@@ -378,8 +379,8 @@ final case class PrivateWithinAccess(
378379 symbol : _root_.scala.Predef .String = " "
379380 ) extends dotty.tools.dotc.semanticdb.Access .NonEmpty with SemanticdbGeneratedMessage derives CanEqual {
380381 @ transient @ sharable
381- private [this ] var __serializedSizeCachedValue : _root_.scala.Int = 0
382- private [this ] def __computeSerializedValue (): _root_.scala.Int = {
382+ private [this ] var __serializedSizeMemoized : _root_.scala.Int = 0
383+ private [this ] def __computeSerializedSize (): _root_.scala.Int = {
383384 var __size = 0
384385
385386 {
@@ -391,12 +392,13 @@ final case class PrivateWithinAccess(
391392 __size
392393 }
393394 override def serializedSize : _root_.scala.Int = {
394- var read = __serializedSizeCachedValue
395- if (read == 0 ) {
396- read = __computeSerializedValue()
397- __serializedSizeCachedValue = read
395+ var __size = __serializedSizeMemoized
396+ if (__size == 0 ) {
397+ __size = __computeSerializedSize() + 1
398+ __serializedSizeMemoized = __size
398399 }
399- read
400+ __size - 1
401+
400402 }
401403 def writeTo (`_output__` : SemanticdbOutputStream ): _root_.scala.Unit = {
402404 {
@@ -537,8 +539,8 @@ final case class ProtectedWithinAccess(
537539 symbol : _root_.scala.Predef .String = " "
538540 ) extends dotty.tools.dotc.semanticdb.Access .NonEmpty with SemanticdbGeneratedMessage derives CanEqual {
539541 @ transient @ sharable
540- private [this ] var __serializedSizeCachedValue : _root_.scala.Int = 0
541- private [this ] def __computeSerializedValue (): _root_.scala.Int = {
542+ private [this ] var __serializedSizeMemoized : _root_.scala.Int = 0
543+ private [this ] def __computeSerializedSize (): _root_.scala.Int = {
542544 var __size = 0
543545
544546 {
@@ -550,12 +552,13 @@ final case class ProtectedWithinAccess(
550552 __size
551553 }
552554 override def serializedSize : _root_.scala.Int = {
553- var read = __serializedSizeCachedValue
554- if (read == 0 ) {
555- read = __computeSerializedValue()
556- __serializedSizeCachedValue = read
555+ var __size = __serializedSizeMemoized
556+ if (__size == 0 ) {
557+ __size = __computeSerializedSize() + 1
558+ __serializedSizeMemoized = __size
557559 }
558- read
560+ __size - 1
561+
559562 }
560563 def writeTo (`_output__` : SemanticdbOutputStream ): _root_.scala.Unit = {
561564 {
0 commit comments