TypeDefKind

zio.blocks.typeid.TypeDefKind
See theTypeDefKind companion object
sealed trait TypeDefKind

Classifies what kind of type definition a TypeId represents.

This enables distinguishing between:

  • Classes (regular, case, abstract, final, value)
  • Traits (regular, sealed)
  • Objects (singleton objects)
  • Enums (Scala 3 enums with cases)
  • Type aliases and opaque types
  • Abstract type members

Attributes

Companion
object
Source
TypeDefKind.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AbstractType
class Class
class Enum
class EnumCase
class Object
class OpaqueType
class Trait
object TypeAlias
object Unknown
Show all

Members list

Value members

Concrete methods

def baseTypes: List[TypeRepr]

The base types (parent classes/traits) of this type definition.

The base types (parent classes/traits) of this type definition.

Attributes

Source
TypeDefKind.scala