in scala-repl/src/main/scala/spark/ztools.sc [724:742]
private def calculateVariable(result: mutable.Map[String, Any], name: String) = {
val valMap = result(name).asInstanceOf[mutable.Map[String, Any]]
try {
val startTime = System.currentTimeMillis()
val info = interpreterHandler.getInfo(name, valMap(ResNames.TYPE).asInstanceOf[String])
val ref = referenceManager.getRef(info.value, name)
touched(info.path) = info
if (ref != null && ref != info.path) {
result += (info.path -> mutable.Map[String, Any](ResNames.REF -> ref))
} else {
result += info.path -> parseInfo(info, depth, startTime)
}
} catch {
case t: Throwable =>
valMap += ResNames.VALUE -> ExceptionUtils.getRootCauseMessage(t)
}
}