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
Members list
In this article