scala.tools.nsc.util.ScalaPrefs.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.scala-compiler
Show all versions of org.apache.servicemix.bundles.scala-compiler
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
/* NSC -- new Scala compiler
* Copyright 2005-2011 LAMP/EPFL
* @author Paul Phillips
*/
package scala.tools.nsc
package util
import io.Sources
trait ScalaPrefs {
def codeSources: Sources
def exceptionFormatter: Exceptional.Formatter
}
trait LowPriorityScalaPrefs {
implicit object DefaultScalaPrefs extends ScalaPrefs {
def codeSources = Sources.defaultSources
def exceptionFormatter = Exceptional.Formatter(this)
}
}
object ScalaPrefs extends LowPriorityScalaPrefs {
def apply(implicit prefs: ScalaPrefs): ScalaPrefs = prefs
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy