SplicePattern
tastyquery.Trees.SplicePattern
final case class SplicePattern(pattern: PatternTree, targs: List[TypeTree], args: List[TermTree], spliceType: Type)(pos: SourcePosition) extends TermTree
A tree representing a pattern splice ${ pattern }
, $ident
or $ident(args*)
in a quote pattern.
Parser will only create ${ pattern }
and $ident
, hence they will not have args. While typing, the $ident(args*)
the args are identified and desugared into a SplicePattern
containing them.
SplicePattern
can only be contained within a QuotePattern
.
Value parameters
- args
-
The arguments of the splice (the HOAS arguments)
- pattern
-
The pattern that was spliced
- spliceType
-
The type of the splice, i.e., of this tree
- targs
-
The type arguments of the splice (the HOAS arguments)
Attributes
- Graph
-
- Supertypes
-
trait Serializableclass TermTreeclass StatementTreeclass TopLevelTreeclass Treetrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article