TypeRef

zio.blocks.codegen.ir.TypeRef
See theTypeRef companion object
final case class TypeRef(name: String, typeArgs: List[TypeRef] = ...)

Represents a Scala type reference in the IR, supporting generic types.

Value parameters

name

The name of the type (e.g., "String", "List", "Option")

typeArgs

Type arguments for generic types (defaults to empty list)

Attributes

Example
// Simple type
val stringType = TypeRef("String")
// Generic type with arguments
val listOfInt = TypeRef("List", List(TypeRef("Int")))
// Using factory methods
val optionalString = TypeRef.optional(TypeRef.String)
val mapStringInt = TypeRef.map(TypeRef.String, TypeRef.Int)
Companion
object
Source
TypeRef.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