TraitGenerator

com.raquo.domtypes.codegen.generators.TraitGenerator
abstract class TraitGenerator[Def](format: CodeFormatting) extends SourceGenerator

Attributes

Graph
Supertypes
trait SourceRepr
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def printDef(keyDef: Def, alias: Option[String]): Unit
protected def printImplDefs(): Unit

Concrete methods

protected def commentLinesWithDocs(commentLines: List[String], scalaAliases: List[String], docUrls: List[String]): List[String]
def distinctByImpl[A](implName: String, f: Def => A): List[A]
def distinctImplNames(): List[String]
protected def printAfterAllDefs(): Unit
protected def printAfterDef(): Unit
protected def printAfterDefGroupComments(keyDef: Def): Unit
protected def printBeforeAllDefs(): Unit
protected def printBeforeDef(): Unit
protected def printBeforeDefGroupComments(keyDef: Def): Unit
protected def printDefGroupComment(keyDef: Def): Unit
def printTrait(): TraitGenerator.this.type
protected def printTraitDef(inside: => Unit): Unit
def uniqueValueForImpl[A](implName: String, f: Def => A, clue: String): A

Inherited methods

protected def blockCommentLines(commentLines: List[String]): Unit

Attributes

Inherited from:
SourceGenerator
protected def classParamLine(name: String, option: Option[String]): Unit

Attributes

Inherited from:
SourceGenerator
protected def classParamLine[A](name: String, list: List[A], renderItem: A => Unit): Unit

Attributes

Inherited from:
SourceGenerator
protected def classParamLine(name: String, list: List[String]): Unit

Attributes

Inherited from:
SourceGenerator
protected def classParamLine(name: String, value: Boolean): Unit

Attributes

Inherited from:
SourceGenerator
protected def classParamLine(name: String, value: TagType): Unit

Attributes

Inherited from:
SourceGenerator
protected def classParamLine(name: String, value: String): Unit

Attributes

Inherited from:
SourceGenerator
def clearOutput(): Unit

Attributes

Inherited from:
SourceGenerator
protected def enter(prefix: String, suffix: String)(inside: => Unit): Unit

Attributes

Inherited from:
SourceGenerator
def getOutput(): String

Also clears the output

Also clears the output

Attributes

Inherited from:
SourceGenerator
protected def line(): Unit

Attributes

Inherited from:
SourceGenerator
protected def line(strs: String*): Unit

Attributes

Inherited from:
SourceGenerator
protected def line(str: String): Unit

Attributes

Inherited from:
SourceGenerator

Abstract fields

protected val defAliases: Def => List[String]
protected val defGroupComments: Def => List[String]
protected val defs: List[Def]
protected val headerLines: List[String]
protected val keyImplName: Def => String
protected val keyImplNameArgName: String
protected val outputImplDefs: Boolean
protected val traitCommentLines: List[String]
protected val traitExtends: List[String]
protected val traitModifiers: List[String]
protected val traitName: String
protected val traitThisType: Option[String]