org.scalameta.ExceptionHelpers.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common_2.11 Show documentation
Show all versions of common_2.11 Show documentation
Bag of private and public helpers used in scala.meta's APIs and implementations
package org.scalameta
import org.scalameta.internal.ScalaCompat.EOL
private[scalameta] object ExceptionHelpers {
def formatDebuggees(sb: StringBuilder, debuggees: Map[String, Any]): Unit = debuggees.toList
.sortBy(_._1).foreach { case (k, v) =>
val vstr = v.toString
val vformatted = if (vstr.isEmpty) s"''" else vstr
sb.append(s"where $k = $vformatted$EOL")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy