summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormergify[bot]2022-07-22 18:35:31 +0000
committerGitHub2022-07-22 18:35:31 +0000
commit0ff14a949f6781f5d76c6088202863d16cb24a18 (patch)
treec48b180c3b7d45c74f632444606e4867b0a0db8c
parentf46d02f55bd22ffda32b20e8cc4b40aa96b03ee0 (diff)
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 <laeufer@cs.berkeley.edu>
-rw-r--r--core/src/main/scala/chisel3/StrongEnum.scala2
1 files changed, 1 insertions, 1 deletions
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