@@ -404,6 +404,7 @@ object DFVal:
404
404
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
405
405
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
406
406
def copyWithNewRefs (using RefGen ): this .type = copy(
407
+ meta = meta.copyWithNewRefs,
407
408
dfType = dfType.copyWithNewRefs,
408
409
ownerRef = ownerRef.copyAsNewRef
409
410
).asInstanceOf [this .type ]
@@ -441,6 +442,7 @@ object DFVal:
441
442
lazy val getRefs : List [DFRef .TwoWayAny ] = dfValRef :: defaultRef :: dfType.getRefs
442
443
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
443
444
def copyWithNewRefs (using RefGen ): this .type = copy(
445
+ meta = meta.copyWithNewRefs,
444
446
dfType = dfType.copyWithNewRefs,
445
447
ownerRef = ownerRef.copyAsNewRef,
446
448
dfValRef = dfValRef.copyAsNewRef,
@@ -490,6 +492,7 @@ object DFVal:
490
492
lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs
491
493
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
492
494
def copyWithNewRefs (using RefGen ): this .type = copy(
495
+ meta = meta.copyWithNewRefs,
493
496
dfType = dfType.copyWithNewRefs,
494
497
ownerRef = ownerRef.copyAsNewRef
495
498
).asInstanceOf [this .type ]
@@ -520,6 +523,7 @@ object DFVal:
520
523
lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ initRefList
521
524
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
522
525
def copyWithNewRefs (using RefGen ): this .type = copy(
526
+ meta = meta.copyWithNewRefs,
523
527
dfType = dfType.copyWithNewRefs,
524
528
ownerRef = ownerRef.copyAsNewRef,
525
529
initRefList = initRefList.map(_.copyAsNewRef)
@@ -574,6 +578,7 @@ object DFVal:
574
578
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
575
579
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
576
580
def copyWithNewRefs (using RefGen ): this .type = copy(
581
+ meta = meta.copyWithNewRefs,
577
582
dfType = dfType.copyWithNewRefs,
578
583
ownerRef = ownerRef.copyAsNewRef,
579
584
args = args.map(_.copyAsNewRef)
@@ -613,6 +618,7 @@ object DFVal:
613
618
lazy val getRefs : List [DFRef .TwoWayAny ] = designInstRef :: dfType.getRefs
614
619
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
615
620
def copyWithNewRefs (using RefGen ): this .type = copy(
621
+ meta = meta.copyWithNewRefs,
616
622
dfType = dfType.copyWithNewRefs,
617
623
ownerRef = ownerRef.copyAsNewRef,
618
624
designInstRef = designInstRef.copyAsNewRef
@@ -682,6 +688,7 @@ object DFVal:
682
688
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
683
689
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
684
690
def copyWithNewRefs (using RefGen ): this .type = copy(
691
+ meta = meta.copyWithNewRefs,
685
692
dfType = dfType.copyWithNewRefs,
686
693
ownerRef = ownerRef.copyAsNewRef,
687
694
relValRef = relValRef.copyAsNewRef
@@ -721,6 +728,7 @@ object DFVal:
721
728
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
722
729
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
723
730
def copyWithNewRefs (using RefGen ): this .type = copy(
731
+ meta = meta.copyWithNewRefs,
724
732
dfType = dfType.copyWithNewRefs,
725
733
ownerRef = ownerRef.copyAsNewRef,
726
734
relValRef = relValRef.copyAsNewRef,
@@ -788,6 +796,7 @@ object DFVal:
788
796
def updateDFType (dfType : DFType ): this .type = this
789
797
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
790
798
def copyWithNewRefs (using RefGen ): this .type = copy(
799
+ meta = meta.copyWithNewRefs,
791
800
dfType = dfType.copyWithNewRefs,
792
801
ownerRef = ownerRef.copyAsNewRef,
793
802
relValRef = relValRef.copyAsNewRef,
@@ -844,6 +853,7 @@ object DFVal:
844
853
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
845
854
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
846
855
def copyWithNewRefs (using RefGen ): this .type = copy(
856
+ meta = meta.copyWithNewRefs,
847
857
dfType = dfType.copyWithNewRefs,
848
858
ownerRef = ownerRef.copyAsNewRef,
849
859
relValRef = relValRef.copyAsNewRef,
@@ -892,6 +902,7 @@ object DFVal:
892
902
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
893
903
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
894
904
def copyWithNewRefs (using RefGen ): this .type = copy(
905
+ meta = meta.copyWithNewRefs,
895
906
dfType = dfType.copyWithNewRefs,
896
907
ownerRef = ownerRef.copyAsNewRef,
897
908
relValRef = relValRef.copyAsNewRef
@@ -919,6 +930,7 @@ final case class DFRange(
919
930
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
920
931
lazy val getRefs : List [DFRef .TwoWayAny ] = List (startRef, endRef, stepRef)
921
932
def copyWithNewRefs (using RefGen ): this .type = copy(
933
+ meta = meta.copyWithNewRefs,
922
934
startRef = startRef.copyAsNewRef,
923
935
endRef = endRef.copyAsNewRef,
924
936
stepRef = stepRef.copyAsNewRef,
@@ -948,6 +960,7 @@ final case class DFNet(
948
960
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
949
961
lazy val getRefs : List [DFRef .TwoWayAny ] = List (lhsRef, rhsRef)
950
962
def copyWithNewRefs (using RefGen ): this .type = copy(
963
+ meta = meta.copyWithNewRefs,
951
964
lhsRef = lhsRef.copyAsNewRef,
952
965
rhsRef = rhsRef.copyAsNewRef,
953
966
ownerRef = ownerRef.copyAsNewRef
@@ -1028,6 +1041,7 @@ final case class StepBlock(
1028
1041
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1029
1042
lazy val getRefs : List [DFRef .TwoWayAny ] = Nil
1030
1043
def copyWithNewRefs (using RefGen ): this .type = copy(
1044
+ meta = meta.copyWithNewRefs,
1031
1045
ownerRef = ownerRef.copyAsNewRef
1032
1046
).asInstanceOf [this .type ]
1033
1047
end StepBlock
@@ -1054,6 +1068,7 @@ final case class Goto(
1054
1068
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1055
1069
lazy val getRefs : List [DFRef .TwoWayAny ] = List (stepRef)
1056
1070
def copyWithNewRefs (using RefGen ): this .type = copy(
1071
+ meta = meta.copyWithNewRefs,
1057
1072
stepRef = stepRef.copyAsNewRef,
1058
1073
ownerRef = ownerRef.copyAsNewRef
1059
1074
).asInstanceOf [this .type ]
@@ -1093,6 +1108,7 @@ final case class DFInterfaceOwner(
1093
1108
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1094
1109
lazy val getRefs : List [DFRef .TwoWayAny ] = domainType.getRefs
1095
1110
def copyWithNewRefs (using RefGen ): this .type = copy(
1111
+ meta = meta.copyWithNewRefs,
1096
1112
domainType = domainType.copyWithNewRefs,
1097
1113
ownerRef = ownerRef.copyAsNewRef
1098
1114
).asInstanceOf [this .type ]
@@ -1125,6 +1141,7 @@ final case class ProcessBlock(
1125
1141
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1126
1142
lazy val getRefs : List [DFRef .TwoWayAny ] = sensitivity.getRefs
1127
1143
def copyWithNewRefs (using RefGen ): this .type = copy(
1144
+ meta = meta.copyWithNewRefs,
1128
1145
sensitivity = sensitivity.copyWithNewRefs,
1129
1146
ownerRef = ownerRef.copyAsNewRef
1130
1147
).asInstanceOf [this .type ]
@@ -1187,6 +1204,7 @@ object DFConditional:
1187
1204
lazy val getRefs : List [DFRef .TwoWayAny ] = selectorRef :: dfType.getRefs
1188
1205
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
1189
1206
def copyWithNewRefs (using RefGen ): this .type = copy(
1207
+ meta = meta.copyWithNewRefs,
1190
1208
dfType = dfType.copyWithNewRefs,
1191
1209
selectorRef = selectorRef.copyAsNewRef,
1192
1210
ownerRef = ownerRef.copyAsNewRef
@@ -1213,6 +1231,7 @@ object DFConditional:
1213
1231
lazy val getRefs : List [DFRef .TwoWayAny ] =
1214
1232
List (guardRef, prevBlockOrHeaderRef) ++ pattern.getRefs
1215
1233
def copyWithNewRefs (using RefGen ): this .type = copy(
1234
+ meta = meta.copyWithNewRefs,
1216
1235
pattern = pattern.copyWithNewRefs,
1217
1236
guardRef = guardRef.copyAsNewRef,
1218
1237
prevBlockOrHeaderRef = prevBlockOrHeaderRef.copyAsNewRef,
@@ -1326,6 +1345,7 @@ object DFConditional:
1326
1345
false
1327
1346
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
1328
1347
def copyWithNewRefs (using RefGen ): this .type = copy(
1348
+ meta = meta.copyWithNewRefs,
1329
1349
dfType = dfType.copyWithNewRefs,
1330
1350
ownerRef = ownerRef.copyAsNewRef
1331
1351
).asInstanceOf [this .type ]
@@ -1348,6 +1368,7 @@ object DFConditional:
1348
1368
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1349
1369
lazy val getRefs : List [DFRef .TwoWayAny ] = List (guardRef, prevBlockOrHeaderRef)
1350
1370
def copyWithNewRefs (using RefGen ): this .type = copy(
1371
+ meta = meta.copyWithNewRefs,
1351
1372
guardRef = guardRef.copyAsNewRef,
1352
1373
prevBlockOrHeaderRef = prevBlockOrHeaderRef.copyAsNewRef,
1353
1374
ownerRef = ownerRef.copyAsNewRef
@@ -1376,6 +1397,7 @@ object DFLoop:
1376
1397
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1377
1398
lazy val getRefs : List [DFRef .TwoWayAny ] = List (iteratorRef, rangeRef)
1378
1399
def copyWithNewRefs (using RefGen ): this .type = copy(
1400
+ meta = meta.copyWithNewRefs,
1379
1401
iteratorRef = iteratorRef.copyAsNewRef,
1380
1402
rangeRef = rangeRef.copyAsNewRef,
1381
1403
ownerRef = ownerRef.copyAsNewRef
@@ -1400,6 +1422,7 @@ object DFLoop:
1400
1422
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1401
1423
lazy val getRefs : List [DFRef .TwoWayAny ] = List (guardRef)
1402
1424
def copyWithNewRefs (using RefGen ): this .type = copy(
1425
+ meta = meta.copyWithNewRefs,
1403
1426
guardRef = guardRef.copyAsNewRef,
1404
1427
ownerRef = ownerRef.copyAsNewRef
1405
1428
).asInstanceOf [this .type ]
@@ -1429,6 +1452,7 @@ final case class DFDesignBlock(
1429
1452
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1430
1453
lazy val getRefs : List [DFRef .TwoWayAny ] = domainType.getRefs
1431
1454
def copyWithNewRefs (using RefGen ): this .type = copy(
1455
+ meta = meta.copyWithNewRefs,
1432
1456
domainType = domainType.copyWithNewRefs,
1433
1457
ownerRef = ownerRef.copyAsNewRef
1434
1458
).asInstanceOf [this .type ]
@@ -1492,6 +1516,7 @@ final case class DomainBlock(
1492
1516
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1493
1517
lazy val getRefs : List [DFRef .TwoWayAny ] = domainType.getRefs
1494
1518
def copyWithNewRefs (using RefGen ): this .type = copy(
1519
+ meta = meta.copyWithNewRefs,
1495
1520
domainType = domainType.copyWithNewRefs,
1496
1521
ownerRef = ownerRef.copyAsNewRef
1497
1522
).asInstanceOf [this .type ]
@@ -1590,6 +1615,7 @@ final case class Wait(
1590
1615
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1591
1616
lazy val getRefs : List [DFRef .TwoWayAny ] = List (triggerRef)
1592
1617
def copyWithNewRefs (using RefGen ): this .type = copy(
1618
+ meta = meta.copyWithNewRefs,
1593
1619
triggerRef = triggerRef.copyAsNewRef,
1594
1620
ownerRef = ownerRef.copyAsNewRef
1595
1621
).asInstanceOf [this .type ]
@@ -1616,6 +1642,7 @@ final case class TextOut(
1616
1642
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1617
1643
lazy val getRefs : List [DFRef .TwoWayAny ] = op.getRefs ++ msgArgs
1618
1644
def copyWithNewRefs (using RefGen ): this .type = copy(
1645
+ meta = meta.copyWithNewRefs,
1619
1646
op = op.copyWithNewRefs,
1620
1647
msgArgs = msgArgs.map(_.copyAsNewRef),
1621
1648
ownerRef = ownerRef.copyAsNewRef
0 commit comments