TypeDefinition

zio.blocks.codegen.ir.TypeDefinition
sealed trait TypeDefinition

Represents a Scala type definition in the IR.

All compound types (case classes, sealed traits, enums, objects, newtypes) extend this trait, providing a uniform interface for code generation.

Attributes

Source
TypeDefinition.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CaseClass
class Enum
class Newtype
class ObjectDef
class OpaqueType
class SealedTrait
class Trait
class TypeAlias
Show all

Members list

Value members

Abstract methods

def annotations: List[Annotation]

Annotations applied to the type.

Annotations applied to the type.

Attributes

Source
TypeDefinition.scala
def doc: Option[String]

Optional documentation for the type.

Optional documentation for the type.

Attributes

Source
TypeDefinition.scala
def name: String

The name of the type.

The name of the type.

Attributes

Source
TypeDefinition.scala