ru.primetalk.source.text

Type members

Classlikes

case class Block(lines: List[Text]) extends Text
case class Inline(parts: List[String]) extends Text
trait Show[T]
sealed trait Text

Representation of source code.

Representation of source code.

Value members

Concrete methods

def concat(a: Text, b: Text): Text
def concatList(lst: Text*): Text
def lift(s: String): Inline
def lines(t: Text, indent: Int, indentStep: Int): List[String]
def render[T](t: T, indent: Int)(using s: Show[T]): String
def showText(t: Text, indentStep: Int): String

Extensions

Extensions

extension (s: String)
extension (t: Text)
def +(other: Text): Text
def +(other: String): Text