zio.blocks.codegen.emit
package zio.blocks.codegen.emit
Members list
Type members
Classlikes
object EmitterConfig
Attributes
- Companion
- class
- Source
- EmitterConfig.scala
- Supertypes
- Self type
-
EmitterConfig.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
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
- Self type
-
ScalaEmitter.type
In this article