diff options
| author | mergify[bot] | 2022-07-22 18:35:31 +0000 |
|---|---|---|
| committer | GitHub | 2022-07-22 18:35:31 +0000 |
| commit | 0ff14a949f6781f5d76c6088202863d16cb24a18 (patch) | |
| tree | c48b180c3b7d45c74f632444606e4867b0a0db8c | |
| parent | f46d02f55bd22ffda32b20e8cc4b40aa96b03ee0 (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.scala | 2 |
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 |
