RepeatedModule
scala.quoted.Quotes.reflectModule.RepeatedModule
trait RepeatedModule
Methods of the module object val Repeated.
Attributes
- Source
- Quotes.scala
- Graph
-
- Supertypes
- Self type
-
Members list
Value members
Abstract methods
def apply(elems: List[Quotes.this.reflectModule.this.Term], tpt: Quotes.this.reflectModule.this.TypeTree): Quotes.this.reflectModule.this.Repeated
Creates a literal sequence of elements.
Creates a literal sequence of elements.
Value parameters
- elems
-
the list of element terms in the sequence
- tpt
-
the element type tree
Attributes
- Returns
-
a
Repeatedtree wrappingelemsof typetpt - Source
- Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(elems: List[Quotes.this.reflectModule.this.Term], tpt: Quotes.this.reflectModule.this.TypeTree): Quotes.this.reflectModule.this.Repeated
Copies a literal sequence of elements.
Copies a literal sequence of elements.
Value parameters
- elems
-
the list of element terms in the sequence
- original
-
the original tree being copied
- tpt
-
the element type tree
Attributes
- Returns
-
a copy of
originalwith the given elements and element type - Source
- Quotes.scala
def unapply(x: Quotes.this.reflectModule.this.Repeated): (List[Quotes.this.reflectModule.this.Term], Quotes.this.reflectModule.this.TypeTree)
Matches a literal sequence of elements.
Matches a literal sequence of elements.
Value parameters
- x
-
the
Repeatedto match against
Attributes
- Returns
-
a tuple of the element terms and the element type tree
- Source
- Quotes.scala
In this article