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 (TypeTreeBinds) 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 '{ ... } or Right(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 Serializable
class PatternTree
class Tree
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def withPos(pos: SourcePosition): QuotePattern

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def showBasic: String

Attributes

Inherited from:
Tree
final def showMultiline: String

Attributes

Inherited from:
Tree