From 0ff14a949f6781f5d76c6088202863d16cb24a18 Mon Sep 17 00:00:00 2001 From: mergify[bot] Date: Fri, 22 Jul 2022 18:35:31 +0000 Subject: ChiselEnum: make factory package private (#2639) (#2640) This is required in order to support peeks in chiseltest. (cherry picked from commit 26cd15a9943ca20829630d2feedac08a069291c2) Co-authored-by: Kevin Laeufer --- core/src/main/scala/chisel3/StrongEnum.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/main/scala/chisel3/StrongEnum.scala b/core/src/main/scala/chisel3/StrongEnum.scala index 6f9cce55..cd6f11ee 100644 --- a/core/src/main/scala/chisel3/StrongEnum.scala +++ b/core/src/main/scala/chisel3/StrongEnum.scala @@ -71,7 +71,7 @@ object EnumAnnotations { } import EnumAnnotations._ -abstract class EnumType(private val factory: EnumFactory, selfAnnotating: Boolean = true) extends Element { +abstract class EnumType(private[chisel3] val factory: EnumFactory, selfAnnotating: Boolean = true) extends Element { // Use getSimpleName instead of enumTypeName because for debugging purposes // the fully qualified name isn't necessary (compared to for the -- cgit v1.2.3