object SourceLocation
- Alphabetic
- By Inheritance
- SourceLocation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
SourceLocation
(file: String, line: Int, offset: Int) extends Product with Serializable
Source location coordinates
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit macro
def
sourceLocation: SourceLocation
Source coordinates of the position at which this macro is invoked.
Source coordinates of the position at which this macro is invoked. One scenario in which it might be used is:
abstract class AltTrial(implicit loc: SourceLocation) { ... }
Whenever this class is used to extend another class, the source coordinates of the location of the extension are made available.
Another scenario is exemplified by the signature of io.threadcso.debug.Logger.log:
def log(bits: Int, text: => String)(implicit loc: SourceLocation)
This method records in a log (among other things) the location in the source text of its own call.
- See also
- def sourceLocationMACRO(c: Context): scala.reflect.macros.Universe.Tree
- def sourcePathMACRO(c: Context): scala.reflect.macros.Universe.Tree
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )