ReturnModule

scala.quoted.Quotes.reflectModule.ReturnModule
trait ReturnModule

Methods of the module object val Return.

Attributes

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

Members list

Value members

Abstract methods

def apply(expr: Quotes.this.reflectModule.this.Term, from: Quotes.this.reflectModule.this.Symbol): Quotes.this.reflectModule.this.Return

Creates return.

Creates return.

Value parameters

expr

the expression being returned

from

the symbol of the enclosing method

Attributes

Source
Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(expr: Quotes.this.reflectModule.this.Term, from: Quotes.this.reflectModule.this.Symbol): Quotes.this.reflectModule.this.Return

Attributes

Source
Quotes.scala

Matches return and extracts the expression and symbol of the method.

Matches return and extracts the expression and symbol of the method.

Value parameters

x

the Return to match against

Attributes

Source
Quotes.scala