diff options
Diffstat (limited to 'src/main/scala/firrtl/Namespace.scala')
| -rw-r--r-- | src/main/scala/firrtl/Namespace.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/Namespace.scala b/src/main/scala/firrtl/Namespace.scala index f40748c2..cc5d8967 100644 --- a/src/main/scala/firrtl/Namespace.scala +++ b/src/main/scala/firrtl/Namespace.scala @@ -39,6 +39,11 @@ class Namespace private { } def newTemp: String = newName(tempNamePrefix) + + /** Create a copy of the [[scala.collection.mutable.HashSet HashSet]] backing this [[Namespace]] + * @return a copy of the underlying [[scala.collection.mutable.HashSet HashSet]] + */ + def cloneUnderlying: mutable.HashSet[String] = namespace.clone } /* TODO(azidar): Make Namespace return unique names that will not conflict with expanded |
