lazy_module: If the user actually specifies a name, just use it without appending module name.
This commit is contained in:
parent
a807c922d0
commit
fd2d48acda
@ -28,7 +28,7 @@ abstract class LazyModule
|
|||||||
lazy val outerName = if (nodes.size != 1) None else nodes(0).gco.flatMap(_.lazyModule.valName)
|
lazy val outerName = if (nodes.size != 1) None else nodes(0).gco.flatMap(_.lazyModule.valName)
|
||||||
|
|
||||||
def moduleName = className + valName.orElse(outerName).map("_" + _).getOrElse("")
|
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 name = valName.getOrElse(className)
|
||||||
def line = sourceLine(info)
|
def line = sourceLine(info)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user