1
0
Fork 0

graphML: don't draw unconnected LazyModules

This commit is contained in:
Wesley W. Terpstra 2017-04-14 16:35:43 -07:00
parent fcf774f125
commit ae8fd0c60f
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ abstract class LazyModule()(implicit val p: Parameters)
bindings.reverse.foreach { f => f () }
}
def omitGraphML = nodes.isEmpty && children.isEmpty
def omitGraphML: Boolean = !nodes.exists(!_.omitGraphML) && !children.exists(!_.omitGraphML)
lazy val graphML: String = parent.map(_.graphML).getOrElse {
val buf = new StringBuilder
buf ++= "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"