Doc

gapt.utils.Doc
See theDoc companion object
sealed trait Doc

Attributes

Companion
object
Source
Doc.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def <+>(that: Doc): Doc

Concatenate two documents with a space between them.

Concatenate two documents with a space between them.

Attributes

Source
Doc.scala
def </>(that: Doc): Doc

Concatenate two documents with a line break between them.

Concatenate two documents with a line break between them.

Attributes

Source
Doc.scala
def <>(that: Doc): Doc

Concatenate two documents.

Concatenate two documents.

Attributes

Source
Doc.scala

Attributes

Source
Doc.scala
def group: Doc

Group a document such that it is displayed on one line if possible.

Group a document such that it is displayed on one line if possible.

Attributes

Source
Doc.scala
def nest(i: Int): Doc

Nest a document to i spaces of indentation.

Nest a document to i spaces of indentation.

Value parameters

i

Then number of spaces to indent by.

Attributes

Source
Doc.scala
def render(lineWidth: Int): String

Turn the document into a string.

Turn the document into a string.

Value parameters

lineWidth

No line in the result string will exceed this length, unless it is unavoidable.

Attributes

Source
Doc.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Doc.scala
def writeToFile(file: Path): Unit

Writes the document to the specified file, replacing the current contents.

Writes the document to the specified file, replacing the current contents.

Attributes

Source
Doc.scala