@@ -400,7 +400,7 @@ object DFVal:
400
400
case _ => false
401
401
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
402
402
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
403
- lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs
403
+ lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ meta.getRefs
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(
@@ -439,7 +439,8 @@ object DFVal:
439
439
case _ => false
440
440
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
441
441
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
442
- lazy val getRefs : List [DFRef .TwoWayAny ] = dfValRef :: defaultRef :: dfType.getRefs
442
+ lazy val getRefs : List [DFRef .TwoWayAny ] =
443
+ dfValRef :: defaultRef :: dfType.getRefs ++ meta.getRefs
443
444
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
444
445
def copyWithNewRefs (using RefGen ): this .type = copy(
445
446
meta = meta.copyWithNewRefs,
@@ -466,7 +467,7 @@ object DFVal:
466
467
case _ => false
467
468
protected def setMeta (meta : Meta ): this .type = this
468
469
protected def setTags (tags : DFTags ): this .type = this
469
- lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs
470
+ lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ meta.getRefs
470
471
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
471
472
def copyWithNewRefs (using RefGen ): this .type = copy(
472
473
dfType = dfType.copyWithNewRefs,
@@ -489,7 +490,7 @@ object DFVal:
489
490
this == that
490
491
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
491
492
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
492
- lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs
493
+ lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ meta.getRefs
493
494
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
494
495
def copyWithNewRefs (using RefGen ): this .type = copy(
495
496
meta = meta.copyWithNewRefs,
@@ -520,7 +521,7 @@ object DFVal:
520
521
def initList (using MemberGetSet ): List [DFVal ] = initRefList.map(_.get)
521
522
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
522
523
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
523
- lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ initRefList
524
+ lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ initRefList ++ meta.getRefs
524
525
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
525
526
def copyWithNewRefs (using RefGen ): this .type = copy(
526
527
meta = meta.copyWithNewRefs,
@@ -574,7 +575,7 @@ object DFVal:
574
575
case _ => false
575
576
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
576
577
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
577
- lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ args
578
+ lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ args ++ meta.getRefs
578
579
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
579
580
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
580
581
def copyWithNewRefs (using RefGen ): this .type = copy(
@@ -615,7 +616,7 @@ object DFVal:
615
616
case _ => false
616
617
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
617
618
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
618
- lazy val getRefs : List [DFRef .TwoWayAny ] = designInstRef :: dfType.getRefs
619
+ lazy val getRefs : List [DFRef .TwoWayAny ] = designInstRef :: dfType.getRefs ++ meta.getRefs
619
620
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
620
621
def copyWithNewRefs (using RefGen ): this .type = copy(
621
622
meta = meta.copyWithNewRefs,
@@ -636,7 +637,7 @@ object DFVal:
636
637
637
638
sealed trait Alias extends CanBeExpr :
638
639
val relValRef : Alias .Ref
639
- lazy val getRefs : List [DFRef .TwoWayAny ] = relValRef :: dfType.getRefs
640
+ lazy val getRefs : List [DFRef .TwoWayAny ] = relValRef :: dfType.getRefs ++ meta.getRefs
640
641
641
642
object Alias :
642
643
type Ref = DFRef .TwoWay [DFVal , Alias ]
@@ -724,7 +725,7 @@ object DFVal:
724
725
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
725
726
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
726
727
override lazy val getRefs : List [DFRef .TwoWayAny ] =
727
- relValRef :: dfType.getRefs ++ initRefOption
728
+ relValRef :: dfType.getRefs ++ initRefOption ++ meta.getRefs
728
729
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
729
730
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
730
731
def copyWithNewRefs (using RefGen ): this .type = copy(
@@ -788,7 +789,7 @@ object DFVal:
788
789
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
789
790
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
790
791
override lazy val getRefs : List [DFRef .TwoWayAny ] =
791
- dfType.getRefs ++ List (relValRef) ++ (idxHighRef match
792
+ dfType.getRefs ++ meta.getRefs ++ List (relValRef) ++ (idxHighRef match
792
793
case ref : DFRef .TypeRef => List (ref);
793
794
case _ => Nil ) ++ (idxLowRef match
794
795
case ref : DFRef .TypeRef => List (ref);
@@ -849,7 +850,8 @@ object DFVal:
849
850
case _ => false
850
851
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
851
852
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
852
- override lazy val getRefs : List [DFRef .TwoWayAny ] = relIdx :: relValRef :: dfType.getRefs
853
+ override lazy val getRefs : List [DFRef .TwoWayAny ] =
854
+ relIdx :: relValRef :: dfType.getRefs ++ meta.getRefs
853
855
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
854
856
def copyWithoutGlobalCtx : this .type = copy().asInstanceOf [this .type ]
855
857
def copyWithNewRefs (using RefGen ): this .type = copy(
@@ -928,7 +930,7 @@ final case class DFRange(
928
930
case _ => false
929
931
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
930
932
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
931
- lazy val getRefs : List [DFRef .TwoWayAny ] = List ( startRef, endRef, stepRef)
933
+ lazy val getRefs : List [DFRef .TwoWayAny ] = startRef :: endRef :: stepRef :: meta.getRefs
932
934
def copyWithNewRefs (using RefGen ): this .type = copy(
933
935
meta = meta.copyWithNewRefs,
934
936
startRef = startRef.copyAsNewRef,
@@ -958,7 +960,7 @@ final case class DFNet(
958
960
case _ => false
959
961
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
960
962
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
961
- lazy val getRefs : List [DFRef .TwoWayAny ] = List ( lhsRef, rhsRef)
963
+ lazy val getRefs : List [DFRef .TwoWayAny ] = lhsRef :: rhsRef :: meta.getRefs
962
964
def copyWithNewRefs (using RefGen ): this .type = copy(
963
965
meta = meta.copyWithNewRefs,
964
966
lhsRef = lhsRef.copyAsNewRef,
@@ -1039,7 +1041,7 @@ final case class StepBlock(
1039
1041
case _ => false
1040
1042
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1041
1043
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1042
- lazy val getRefs : List [DFRef .TwoWayAny ] = Nil
1044
+ lazy val getRefs : List [DFRef .TwoWayAny ] = meta.getRefs
1043
1045
def copyWithNewRefs (using RefGen ): this .type = copy(
1044
1046
meta = meta.copyWithNewRefs,
1045
1047
ownerRef = ownerRef.copyAsNewRef
@@ -1066,7 +1068,7 @@ final case class Goto(
1066
1068
case _ => false
1067
1069
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1068
1070
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1069
- lazy val getRefs : List [DFRef .TwoWayAny ] = List (stepRef)
1071
+ lazy val getRefs : List [DFRef .TwoWayAny ] = List (stepRef) ++ meta.getRefs
1070
1072
def copyWithNewRefs (using RefGen ): this .type = copy(
1071
1073
meta = meta.copyWithNewRefs,
1072
1074
stepRef = stepRef.copyAsNewRef,
@@ -1106,7 +1108,7 @@ final case class DFInterfaceOwner(
1106
1108
case _ => false
1107
1109
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1108
1110
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1109
- lazy val getRefs : List [DFRef .TwoWayAny ] = domainType.getRefs
1111
+ lazy val getRefs : List [DFRef .TwoWayAny ] = domainType.getRefs ++ meta.getRefs
1110
1112
def copyWithNewRefs (using RefGen ): this .type = copy(
1111
1113
meta = meta.copyWithNewRefs,
1112
1114
domainType = domainType.copyWithNewRefs,
@@ -1139,7 +1141,7 @@ final case class ProcessBlock(
1139
1141
case _ => false
1140
1142
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1141
1143
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1142
- lazy val getRefs : List [DFRef .TwoWayAny ] = sensitivity.getRefs
1144
+ lazy val getRefs : List [DFRef .TwoWayAny ] = sensitivity.getRefs ++ meta.getRefs
1143
1145
def copyWithNewRefs (using RefGen ): this .type = copy(
1144
1146
meta = meta.copyWithNewRefs,
1145
1147
sensitivity = sensitivity.copyWithNewRefs,
@@ -1201,7 +1203,7 @@ object DFConditional:
1201
1203
false
1202
1204
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1203
1205
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1204
- lazy val getRefs : List [DFRef .TwoWayAny ] = selectorRef :: dfType.getRefs
1206
+ lazy val getRefs : List [DFRef .TwoWayAny ] = selectorRef :: dfType.getRefs ++ meta.getRefs
1205
1207
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
1206
1208
def copyWithNewRefs (using RefGen ): this .type = copy(
1207
1209
meta = meta.copyWithNewRefs,
@@ -1340,7 +1342,7 @@ object DFConditional:
1340
1342
case _ => false
1341
1343
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1342
1344
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1343
- lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs
1345
+ lazy val getRefs : List [DFRef .TwoWayAny ] = dfType.getRefs ++ meta.getRefs
1344
1346
protected [ir] def protIsSimilarTo (that : DFVal .CanBeExpr )(using MemberGetSet ): Boolean =
1345
1347
false
1346
1348
def updateDFType (dfType : DFType ): this .type = copy(dfType = dfType).asInstanceOf [this .type ]
@@ -1366,7 +1368,7 @@ object DFConditional:
1366
1368
case _ => false
1367
1369
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1368
1370
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1369
- lazy val getRefs : List [DFRef .TwoWayAny ] = List ( guardRef, prevBlockOrHeaderRef)
1371
+ lazy val getRefs : List [DFRef .TwoWayAny ] = guardRef :: prevBlockOrHeaderRef :: meta.getRefs
1370
1372
def copyWithNewRefs (using RefGen ): this .type = copy(
1371
1373
meta = meta.copyWithNewRefs,
1372
1374
guardRef = guardRef.copyAsNewRef,
@@ -1395,7 +1397,7 @@ object DFLoop:
1395
1397
case _ => false
1396
1398
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1397
1399
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1398
- lazy val getRefs : List [DFRef .TwoWayAny ] = List ( iteratorRef, rangeRef)
1400
+ lazy val getRefs : List [DFRef .TwoWayAny ] = iteratorRef :: rangeRef :: meta.getRefs
1399
1401
def copyWithNewRefs (using RefGen ): this .type = copy(
1400
1402
meta = meta.copyWithNewRefs,
1401
1403
iteratorRef = iteratorRef.copyAsNewRef,
@@ -1420,7 +1422,7 @@ object DFLoop:
1420
1422
case _ => false
1421
1423
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1422
1424
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1423
- lazy val getRefs : List [DFRef .TwoWayAny ] = List ( guardRef)
1425
+ lazy val getRefs : List [DFRef .TwoWayAny ] = guardRef :: meta.getRefs
1424
1426
def copyWithNewRefs (using RefGen ): this .type = copy(
1425
1427
meta = meta.copyWithNewRefs,
1426
1428
guardRef = guardRef.copyAsNewRef,
@@ -1514,7 +1516,7 @@ final case class DomainBlock(
1514
1516
case _ => false
1515
1517
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1516
1518
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1517
- lazy val getRefs : List [DFRef .TwoWayAny ] = domainType.getRefs
1519
+ lazy val getRefs : List [DFRef .TwoWayAny ] = domainType.getRefs ++ meta.getRefs
1518
1520
def copyWithNewRefs (using RefGen ): this .type = copy(
1519
1521
meta = meta.copyWithNewRefs,
1520
1522
domainType = domainType.copyWithNewRefs,
@@ -1613,7 +1615,7 @@ final case class Wait(
1613
1615
case _ => false
1614
1616
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1615
1617
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1616
- lazy val getRefs : List [DFRef .TwoWayAny ] = List ( triggerRef)
1618
+ lazy val getRefs : List [DFRef .TwoWayAny ] = triggerRef :: meta.getRefs
1617
1619
def copyWithNewRefs (using RefGen ): this .type = copy(
1618
1620
meta = meta.copyWithNewRefs,
1619
1621
triggerRef = triggerRef.copyAsNewRef,
@@ -1640,7 +1642,7 @@ final case class TextOut(
1640
1642
case _ => false
1641
1643
protected def setMeta (meta : Meta ): this .type = copy(meta = meta).asInstanceOf [this .type ]
1642
1644
protected def setTags (tags : DFTags ): this .type = copy(tags = tags).asInstanceOf [this .type ]
1643
- lazy val getRefs : List [DFRef .TwoWayAny ] = op.getRefs ++ msgArgs
1645
+ lazy val getRefs : List [DFRef .TwoWayAny ] = op.getRefs ++ msgArgs ++ meta.getRefs
1644
1646
def copyWithNewRefs (using RefGen ): this .type = copy(
1645
1647
meta = meta.copyWithNewRefs,
1646
1648
op = op.copyWithNewRefs,
0 commit comments