1
import scala.reflect.macros.Context
4
def impl(c: Context) = {
5
c.universe.reify { implicitly[SourceLocation] }
8
implicit def sourceLocation: SourceLocation1 = macro impl
11
trait SourceLocation {
12
/** Source location of the outermost call */
13
val outer: SourceLocation
15
/** The name of the source file */
18
/** The line number */
21
/** The character offset */
25
case class SourceLocation1(val outer: SourceLocation, val fileName: String, val line: Int, val charOffset: Int) extends SourceLocation