diplomacy: take names from the outermost common node
This commit is contained in:
parent
fee67c4abf
commit
a807c922d0
@ -25,9 +25,10 @@ abstract class LazyModule
|
|||||||
(m.invoke(p) eq this)
|
(m.invoke(p) eq this)
|
||||||
}.headOption.map(_.getName)
|
}.headOption.map(_.getName)
|
||||||
}
|
}
|
||||||
|
lazy val outerName = if (nodes.size != 1) None else nodes(0).gco.flatMap(_.lazyModule.valName)
|
||||||
|
|
||||||
def moduleName = className + valName.map("_" + _).getOrElse("")
|
def moduleName = className + valName.orElse(outerName).map("_" + _).getOrElse("")
|
||||||
def instanceName = valName.getOrElse(className)
|
def instanceName = valName.orElse(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