@@ -50,8 +50,8 @@ final case class AccessMessage(
50
50
sealedValue : dotty.tools.dotc.semanticdb.AccessMessage .SealedValue = dotty.tools.dotc.semanticdb.AccessMessage .SealedValue .Empty
51
51
) extends SemanticdbGeneratedMessage derives CanEqual {
52
52
@ 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 = {
55
55
var __size = 0
56
56
if (sealedValue.privateAccess.isDefined) {
57
57
val __value = sealedValue.privateAccess.get
@@ -84,12 +84,13 @@ final case class AccessMessage(
84
84
__size
85
85
}
86
86
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
91
91
}
92
- read
92
+ __size - 1
93
+
93
94
}
94
95
def writeTo (`_output__` : SemanticdbOutputStream ): _root_.scala.Unit = {
95
96
sealedValue.privateAccess.foreach { __v =>
@@ -378,8 +379,8 @@ final case class PrivateWithinAccess(
378
379
symbol : _root_.scala.Predef .String = " "
379
380
) extends dotty.tools.dotc.semanticdb.Access .NonEmpty with SemanticdbGeneratedMessage derives CanEqual {
380
381
@ 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 = {
383
384
var __size = 0
384
385
385
386
{
@@ -391,12 +392,13 @@ final case class PrivateWithinAccess(
391
392
__size
392
393
}
393
394
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
398
399
}
399
- read
400
+ __size - 1
401
+
400
402
}
401
403
def writeTo (`_output__` : SemanticdbOutputStream ): _root_.scala.Unit = {
402
404
{
@@ -537,8 +539,8 @@ final case class ProtectedWithinAccess(
537
539
symbol : _root_.scala.Predef .String = " "
538
540
) extends dotty.tools.dotc.semanticdb.Access .NonEmpty with SemanticdbGeneratedMessage derives CanEqual {
539
541
@ 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 = {
542
544
var __size = 0
543
545
544
546
{
@@ -550,12 +552,13 @@ final case class ProtectedWithinAccess(
550
552
__size
551
553
}
552
554
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
557
559
}
558
- read
560
+ __size - 1
561
+
559
562
}
560
563
def writeTo (`_output__` : SemanticdbOutputStream ): _root_.scala.Unit = {
561
564
{
0 commit comments