diff options
| author | Jack Koenig | 2023-03-20 17:28:59 -0700 |
|---|---|---|
| committer | GitHub | 2023-03-20 17:28:59 -0700 |
| commit | 57b8a395ee8d5fdabb2deed3db7d0c644f0a7eed (patch) | |
| tree | 85020fee61ef2a61a9e93326f3d6cbcefb34d3ee /src/main/scala/firrtl | |
| parent | d5dbf71310f9534a108c59e605da1f215b86393b (diff) | |
Directly subclassing Iterable is lazy-ish, but if you call any operation
on the resulting value (eg. map or ++) it will evaluate the Iterable and
return a List.
Diffstat (limited to 'src/main/scala/firrtl')
| -rw-r--r-- | src/main/scala/firrtl/ir/Serializer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/ir/Serializer.scala b/src/main/scala/firrtl/ir/Serializer.scala index 3ef9a96b..cf919b37 100644 --- a/src/main/scala/firrtl/ir/Serializer.scala +++ b/src/main/scala/firrtl/ir/Serializer.scala @@ -69,7 +69,7 @@ object Serializer { case n: Circuit => sIt(n)(indent) case other => Iterator(serialize(other, indent)) } - } + }.view // TODO replace .view with constructing a view directly above, but must drop 2.12 first. /** Converts a `Constraint` into its string representation. */ def serialize(con: Constraint): String = { |
