Position

org.scalactic.source.Position
See thePosition companion class
object Position

Companion object for Position that defines an implicit method that uses a macro to grab the enclosing position.

Attributes

Companion
class
Source
Position.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Position.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def withPosition[T](fun: Expr[Position => T])(using quotes: Quotes, typeOfT: Type[T]): Expr[T]

Attributes

Source
Position.scala

Implicits

Implicits

implicit inline def here: Position

Implicit method, implemented with a macro, that returns the enclosing source position where it is invoked.

Implicit method, implemented with a macro, that returns the enclosing source position where it is invoked.

Attributes

Returns

the enclosing source position

Source
Position.scala