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 (<cond: Term>) <thenp: Term> else <elsep: Term>.

Creates an if/then/else if (<cond: Term>) <thenp: Term> else <elsep: Term>.

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 (<cond: Term>) <thenp: Term> else <elsep: Term>.

Matches an if/then/else if (<cond: Term>) <thenp: Term> else <elsep: Term>.

Attributes

Source
Quotes.scala