1
0

lazy_module: If the user actually specifies a name, just use it without appending module name.

This commit is contained in:
Megan Wachs 2016-10-25 14:29:54 -07:00 committed by mwachs5
parent a807c922d0
commit fd2d48acda

View File

@ -28,7 +28,7 @@ abstract class LazyModule
lazy val outerName = if (nodes.size != 1) None else nodes(0).gco.flatMap(_.lazyModule.valName)
def moduleName = className + valName.orElse(outerName).map("_" + _).getOrElse("")
def instanceName = valName.orElse(outerName).map(_ + "_").getOrElse("") + className
def instanceName = valName.getOrElse(outerName.map(_ + "_").getOrElse("") + className)
def name = valName.getOrElse(className)
def line = sourceLine(info)