ReflectUtil

io.github.iltotore.iron.macros.ReflectUtil
class ReflectUtil[Q <: Quotes & Singleton](using val _quotes: Q)

Low AST related utils.

Type parameters

Q

the type of _quotes to ensure the path is valid to import.

Value parameters

_quotes

the metaprogramming information

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

A decoding failure.

A decoding failure.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ExprDecoder

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class FailureCause(message: String, position: _quotes.reflect.Position)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

type DecodingResult[+T] = Either[DecodingFailure, T]

Givens

Givens

given _quotes: Q

Extensions

Extensions

extension [T](expr: Expr[T])

Decode this expression.

Decode this expression.

Attributes

Returns

the value of this expression found at compile time or a DecodingFailure