com.digitalasset.transcode.codegen.scala

Members list

Type members

Classlikes

trait CodeUnit(using ctx: Context, config: Config)

Attributes

Supertypes
class Object
trait Matchable
class Any
case class Config(dialect: Dialect)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class Context

Attributes

Supertypes
class Object
trait Matchable
class Any
object Names

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Names.type
object ScalaCodegen extends ScalaCodegen

Attributes

Companion
class
Supertypes
class ScalaCodegen
trait CodegenVisitor
trait SchemaVisitor
class Object
trait Matchable
class Any
Show all
Self type
class ScalaCodegen(config: Config) extends CodegenVisitor

Attributes

Companion
object
Supertypes
trait CodegenVisitor
trait SchemaVisitor
class Object
trait Matchable
class Any
Known subtypes
object ScalaCodegen
object ScalafmtConf

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def mkClass(name: String): Class
def mkDef(name: Name): Def
def mkFunc(from: Type, to: Type): Function
def mkObject(name: String): Object
def mkTemplate: Template
def mkTrait(name: String): Trait
def mkVal(name: Name): Val
def prependRoot(ref: Ref): Ref
def prependRoot(ref: Ref): Type
def render(source: Source)(using config: Config): String

Extensions

Extensions

extension (defo: Def)
def withParams(param: (Name, Type), params: (Name, Type)*): Def
def withParams(params: Seq[(Name, Type)]): Def
def withReturnType(tpe: Type): Def
def withTypeParams(typeParams: Seq[TypeVarName]): Def
extension (defo: Val)
def withReturnType(tpe: Type): Val
extension (defo: Object)
def extending(types: Type*): Object
def withMembers(stats: Stat*): Object
def withMods(mods: Mod*): Object
extension (defo: Class)
def extending(types: Type*)(args: Term*): Class
def rename(name: String): Class
def withCtor(field: (String, Type)): Class
def withCtor(fields: Seq[(String, Type)]): Class
def withMods(mods: Mod*): Class
def withTypeParams(params: Seq[TypeVarName]): Class
extension (defo: Trait)
def withMods(mods: Mod*): Trait
def withTypeParams(params: Seq[TypeVarName]): Trait
extension [A <: Def | Val](hasBody: A)
def withBody(body: Term): A
extension (id: Identifier)
def damlPackagePrefix: String
def toClassName: String
def toFilename: RelPath
def toIdentifiersRef: Ref
def toScalaFqn: String
def toScalaPackageName: String
extension (term: Ref)
infix def /(name: Name): Select
extension (term: Term)
infix def *(arg: Term, args: Term*): Term
infix def *(args: Seq[Term]): Term
extension (tpe: Type)
infix def *(args: Seq[Type]): Type