Doc

gapt.utils.Doc
See theDoc companion trait
object Doc

Attributes

Companion
trait
Source
Doc.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Doc.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def line: Doc

A line break that is optionally replaced by a space.

A line break that is optionally replaced by a space.

Attributes

Source
Doc.scala
def sep(docs: Iterable[Doc], by: Doc): Doc

Concatenate a series of docs with a separator between them.

Concatenate a series of docs with a separator between them.

Attributes

Source
Doc.scala
def spread(cols: Iterable[Doc]): Doc

Concatenate a series of docs with spaces between them.

Concatenate a series of docs with spaces between them.

Attributes

Source
Doc.scala
def stack(lines: Iterable[Doc]): Doc

Concatenate a series of docs with line breaks between them.

Concatenate a series of docs with line breaks between them.

Attributes

Source
Doc.scala
def wordwrap(ds: Iterable[Doc], sep: Doc): Doc

Groups a series of Docs such that as many as possible will be put on one line.

Groups a series of Docs such that as many as possible will be put on one line.

Value parameters

sep

A separator between each pair of elements.

Attributes

Source
Doc.scala
def wordwrap2(ds: Iterable[Doc], sep: Doc): Doc

Groups a series of Docs such that as many as possible will be put on the first line, after which each one is put on a new line.

Groups a series of Docs such that as many as possible will be put on the first line, after which each one is put on a new line.

Value parameters

sep

A separator between each pair of elements.

Attributes

Source
Doc.scala

Line break that is optionally replaced by nothing.

Line break that is optionally replaced by nothing.

Attributes

Source
Doc.scala

Implicits

Implicits

implicit def text(t: String): Doc

Attributes

Source
Doc.scala