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

org.mockito.internal.MacroDebug.scala Maven / Gradle / Ivy

The newest version!
package org.mockito.internal

import scala.reflect.macros.blackbox

object MacroDebug {
  def debugResult(c: blackbox.Context)(enablingFlag: String)(tree: c.Tree): Unit = {
    import c.universe._

    if (c.settings.contains(enablingFlag)) {
      val pos = s"${c.enclosingPosition.source.file.name}:${c.enclosingPosition.line}"
      println(pos + " " + show(tree))
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy