IfModule

scala.quoted.Quotes.reflectModule.IfModule
trait IfModule

Methods of the module object val If.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Quotes.this.reflectModule.this.If.type

Members list

Value members

Abstract methods

def apply(cond: Quotes.this.reflectModule.this.Term, thenp: Quotes.this.reflectModule.this.Term, elsep: Quotes.this.reflectModule.this.Term): Quotes.this.reflectModule.this.If

Creates an if/then/else if () else.

Creates an if/then/else if () else.

Value parameters

cond

the condition expression

elsep

the else branch expression

thenp

the then branch expression

Attributes

Source
Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(cond: Quotes.this.reflectModule.this.Term, thenp: Quotes.this.reflectModule.this.Term, elsep: Quotes.this.reflectModule.this.Term): Quotes.this.reflectModule.this.If

Attributes

Source
Quotes.scala
def unapply(tree: Quotes.this.reflectModule.this.If): (Quotes.this.reflectModule.this.Term, Quotes.this.reflectModule.this.Term, Quotes.this.reflectModule.this.Term)

Matches an if/then/else if () else.

Matches an if/then/else if () else.

Value parameters

tree

the tree to match against

Attributes

Source
Quotes.scala