Position

object Position

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

Companion:
class
Source:
Position.scala
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

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

The name of the type

The name of the type

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]

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.

Returns:

the enclosing source position

Source:
Position.scala