zio.blocks.codegen.ir.TypeRef
See theTypeRef companion object
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
Members list
In this article