Definitions
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefinitionsPlatform
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object DefCache
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Existentials (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Existentials (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Existentials (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Existentials (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Expr
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Allow us to use Expr[A] before we would either: know how we would initiate it, or: what the final shape of a whole expression would be.
Allow us to use Expr[A] before we would either: know how we would initiate it, or: what the final shape of a whole expression would be.
In situations like '{ val a = sth; ${ useA('{ a }) } } you know both how a would be created as well as the shape of the final tree. In cases when you would e.g. use expression in some context-dependent derivation which could return Either[Expr[B], Expr[F[B]], ExprPromise allows you to calculate that result and THEN decide how to turn it into final Expr value.
Type parameters
- A
-
type of the current result we created using Expr[From]
- From
-
type of the promised expression
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ExprPromise
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
When we decide that expression would be crated in patter-match binding, we would receive this wrapper around the results, which would ensure that definition is only used inside the scope and allow combining several cases into a single pattern matching.
When we decide that expression would be crated in patter-match binding, we would receive this wrapper around the results, which would ensure that definition is only used inside the scope and allow combining several cases into a single pattern matching.
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object PatternMatchCase
When we decide that promised expression would be used as val/lazy val/var/def, we receive this wrapper around the results, which would ensure that: initialization of a definition would happen before its use, you can only use the definition inside its scope.
When we decide that promised expression would be used as val/lazy val/var/def, we receive this wrapper around the results, which would ensure that: initialization of a definition would happen before its use, you can only use the definition inside its scope.
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object PrependDefinitionsTo
Attributes
- Inherited from:
- Exprs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Types (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Type
Attributes
- Inherited from:
- Types (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Types (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Inherited and Abstract classlikes
Allows "caching" some Expr[A] => F[Expr[B]] derivation as a def.
Allows "caching" some Expr[A] => F[Expr[B]] derivation as a def.
Type parameters
- F
-
type of the result that would be cached method's body (including failed derivation)
Attributes
- Inherited from:
- ExprPromises (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
Inherited types
Attributes
- Inherited from:
- Existentials (hidden)
Attributes
- Inherited from:
- Existentials (hidden)
Attributes
- Inherited from:
- Existentials (hidden)
Attributes
- Inherited from:
- Existentials (hidden)
Represents value with some existential type t both for Type[t] as well as F[t].
Represents value with some existential type t both for Type[t] as well as F[t].
Since Scala 3 removed a lot of cases for existential types we cannot just use Type[?] in shared code. Additionally, we might need to have something to prove that our Type[?] is has the same ? as some Value[?]. For that, this utility would be useful.
Attributes
- Inherited from:
- Existentials (hidden)
Convenient utility to represent Expr[?] with erased inner type with accompanying Type[?] of the same ?.
Convenient utility to represent Expr[?] with erased inner type with accompanying Type[?] of the same ?.
Attributes
- Inherited from:
- Existentials (hidden)
Convenient utility to represent Type[?] with erased inner type, but without any accompanying value.
Convenient utility to represent Type[?] with erased inner type, but without any accompanying value.
Attributes
- Inherited from:
- Existentials (hidden)
Convenient for literal singletons
Convenient for literal singletons
Attributes
- Inherited from:
- Existentials (hidden)
Inherited and Abstract types
Platform-specific expression representation (c.Expr[A] in 2, scala.quoted.Expr[A] in 3
Platform-specific expression representation (c.Expr[A] in 2, scala.quoted.Expr[A] in 3
Attributes
- Inherited from:
- Exprs (hidden)
In Scala 2 it's c.universe.TermName, in Scala 3 Symbol of a val
In Scala 2 it's c.universe.TermName, in Scala 3 Symbol of a val
Attributes
- Inherited from:
- ExprPromises (hidden)
Platform-specific type representation (c.WeakTypeTag[A] in 2, scala.quoted.Type[A] in 3)
Platform-specific type representation (c.WeakTypeTag[A] in 2, scala.quoted.Type[A] in 3)
Attributes
- Inherited from:
- Types (hidden)
Value members
Abstract methods
Values passed into scalacOptions with "-Xmacro-settings:...", can be used to define global settings.
Values passed into scalacOptions with "-Xmacro-settings:...", can be used to define global settings.
Attributes
Inherited methods
Throws AssertionFailed exception
Throws AssertionFailed exception
Attributes
- Inherited from:
- Results (hidden)
Inherited and Abstract methods
Prints error at current macro expansion AND throw exception for aborting macro expansion
Prints error at current macro expansion AND throw exception for aborting macro expansion
Attributes
- Inherited from:
- Results (hidden)
Prints info at current macro expansion - assume it can only be called once
Prints info at current macro expansion - assume it can only be called once
Attributes
- Inherited from:
- Results (hidden)
Inherited and Abstract fields
Attributes
- Inherited from:
- ExprPromises (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- ExprPromises (hidden)
Attributes
- Inherited from:
- ExprPromises (hidden)
Attributes
- Inherited from:
- ExprPromises (hidden)
Attributes
- Inherited from:
- Types (hidden)
Implicits
Inherited implicits
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Existentials (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- ExprPromises (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- ExprPromises (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- ExprPromises (hidden)
Attributes
- Inherited from:
- Exprs (hidden)
Attributes
- Inherited from:
- Types (hidden)
Attributes
- Inherited from:
- Types (hidden)