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

Source
ReflectUtil.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

A decoding failure.

A decoding failure.

Attributes

Source
ReflectUtil.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ExprDecoder

Attributes

Source
ReflectUtil.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Givens

Givens

given _quotes: Q

Attributes

Source
ReflectUtil.scala

Extensions

Extensions

extension [T](expr: Expr[T])
def decode: Either[DecodingFailure, T]

Decode this expression.

Decode this expression.

Attributes

Returns

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

Source
ReflectUtil.scala