Method

zio.blocks.codegen.ir.Method
final case class Method(name: String, typeParams: List[TypeParam] = ..., params: List[ParamList] = ..., returnType: TypeRef, body: Option[String] = ..., annotations: List[Annotation] = ..., isOverride: Boolean = ..., isImplicit: Boolean = ..., doc: Option[String] = ...)

Represents a method definition in the IR.

Value parameters

annotations

List of annotations on the method (defaults to empty list)

body

Optional method body as a string (defaults to None)

doc

Optional documentation for the method (defaults to None)

isImplicit

Whether this method is implicit (Scala 2) or given (Scala 3) (defaults to false)

isOverride

Whether this method overrides a parent method (defaults to false)

name

The method name

params

Parameter lists (supports curried methods, defaults to empty list)

returnType

The return type of the method

typeParams

Type parameters for generic methods (defaults to empty list)

Attributes

Source
Method.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala