ObjectMember

zio.blocks.codegen.ir.ObjectMember
See theObjectMember companion trait
object ObjectMember

Attributes

Companion
trait
Source
TypeDefinition.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class DefMember(method: Method) extends ObjectMember

A def member within an object.

A def member within an object.

Value parameters

method

The method definition

Attributes

Source
TypeDefinition.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectMember
class Object
trait Matchable
class Any
Show all
final case class ExtensionBlock(on: MethodParam, methods: List[Method]) extends ObjectMember

An extension block for Scala 3 extension methods.

An extension block for Scala 3 extension methods.

In Scala 3, emitted as extension (param) { methods }. In Scala 2, falls back to an implicit class wrapping the methods.

Value parameters

methods

The extension methods

on

The parameter to extend on

Attributes

Source
TypeDefinition.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectMember
class Object
trait Matchable
class Any
Show all
final case class NestedType(typeDef: TypeDefinition) extends ObjectMember

A nested type definition within an object.

A nested type definition within an object.

Value parameters

typeDef

The nested type definition

Attributes

Source
TypeDefinition.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectMember
class Object
trait Matchable
class Any
Show all
final case class TypeAlias(name: String, typeRef: TypeRef) extends ObjectMember

A type alias member within an object.

A type alias member within an object.

Value parameters

name

The name of the type alias

typeRef

The aliased type

Attributes

Source
TypeDefinition.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectMember
class Object
trait Matchable
class Any
Show all
final case class ValMember(name: String, typeRef: TypeRef, value: String, isLazy: Boolean = ..., isOverride: Boolean = ..., isImplicit: Boolean = ...) extends ObjectMember

A val member within an object.

A val member within an object.

Value parameters

isImplicit

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

isLazy

Whether this is a lazy val (defaults to false)

isOverride

Whether this val overrides a parent member (defaults to false)

name

The name of the val

typeRef

The type of the val

value

The value expression as a string

Attributes

Source
TypeDefinition.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectMember
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala