All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scalameta.ExceptionHelpers.scala Maven / Gradle / Ivy

Go to download

Bag of private and public helpers used in scala.meta's APIs and implementations

There is a newer version: 4.12.2
Show newest version
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