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

scala.tools.nsc.interactive.tests.core.PresentationCompilerTestDef.scala Maven / Gradle / Ivy

package scala.tools.nsc.interactive.tests.core

import scala.tools.nsc.interactive.Global
import scala.reflect.internal.util.Position

trait PresentationCompilerTestDef {

  private[tests] def runTest(): Unit

  protected def withResponseDelimiter(block: => Unit)(implicit reporter: Reporter) {
    def printDelimiter() = reporter.println("=" * 80)
    printDelimiter()
    block
    printDelimiter()
  }

  protected def format(pos: Position): String =
    (if(pos.isDefined) "(%d,%d)".format(pos.line, pos.column) else "")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy