EmitterConfig

zio.blocks.codegen.emit.EmitterConfig
See theEmitterConfig companion object
final case class EmitterConfig(indentWidth: Int = ..., sortImports: Boolean = ..., scala3Syntax: Boolean = ..., trailingCommas: Boolean = ...)

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
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