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

ammonite.compiler.internal.CompilerHelper.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package ammonite.compiler.internal

import dotty.tools.dotc.core.Contexts._
import dotty.tools.dotc.parsing.Parser
import dotty.tools.dotc.reporting.{Diagnostic, MessageRendering}
import dotty.tools.dotc.typer.TyperPhase

object CompilerHelper {
  def frontEndPhases = List(
    List(new Parser),
    List(new TyperPhase)
  )
  def messageAndPos(messageRenderer: MessageRendering, diagnostic: Diagnostic)(implicit
      ctx: Context
  ) =
    messageRenderer.messageAndPos(diagnostic)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy