zio.blocks.codegen.emit

Members list

Type members

Classlikes

object EmitterConfig

Attributes

Companion
class
Source
EmitterConfig.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class EmitterConfig(indentWidth: Int = ..., sortImports: Boolean = ..., scala3Syntax: Boolean = ..., trailingCommas: Boolean = ...)

Configuration for the Scala code emitter.

Configuration for the Scala code emitter.

Value parameters

indentWidth

Number of spaces per indentation level (default: 2)

scala3Syntax

Whether to use Scala 3 syntax features (default: true)

sortImports

Whether to sort imports alphabetically (default: true)

trailingCommas

Whether to use trailing commas in multi-line constructs (default: true)

Attributes

Companion
object
Source
EmitterConfig.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ScalaEmitter

Emits Scala source code from the codegen IR.

Emits Scala source code from the codegen IR.

This object provides methods for emitting type references, annotations, fields, imports, package declarations, and compound types (case classes, sealed traits, enums, objects, newtypes) as well as full file emission.

Attributes

Source
ScalaEmitter.scala
Supertypes
class Object
trait Matchable
class Any
Self type