QuotePattern
tastyquery.Trees.QuotePattern
final case class QuotePattern(bindings: List[TypeTreeBind], body: Either[TermTree, TypeTree], quotes: TermTree, patternType: Type)(pos: SourcePosition) extends PatternTree
A tree representing a quote pattern '{ type binding1; ...; body }
or '[ type binding1; ...; body ]
.
The bindings
contain the list of quote pattern type variable definitions (TypeTreeBind
s) in the order in which they are defined in the source.
Value parameters
- bindings
-
Type variable definitions
- body
-
Quoted pattern (without type variable definitions):
Left(termTree)
for a term quote pattern'{ ... }
orRight(typeTree)
for a type quote pattern'[ ... ]
- patternType
-
The type of the pattern
- quotes
-
A reference to the given
Quotes
instance in scope
Attributes
- Graph
-
- Supertypes
-
trait Serializableclass PatternTreeclass Treetrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article