object Doc
- Source
- Doc.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Doc
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type Cont = (IW) => (TreeCont) => Trampoline[TreeCont]
- type Dq = Queue[(Position, OutGroup)]
- type Horizontal = Boolean
- type IW = (Indent, Width)
- type Indent = Int
- type Layout = String
- type Out = (Remaining) => Trampoline[Layout]
- type OutGroup = (Horizontal) => (Out) => Trampoline[Out]
- type Position = Int
- type Remaining = Int
- type TreeCont = (Position, Dq) => Trampoline[Out]
- type Width = Int
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final val Empty: Doc
- def align(d: Doc): Doc
- def append(d1: Doc, d2: Doc): Doc
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def char(c: Char): Doc
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def column(f: (Int) => Doc): Doc
- implicit val docMonoid: Monoid[Doc]
- def enclose(left: Doc, d: Doc, right: Doc): Doc
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fillBreak(requestedWidth: Int, d: Doc): Doc
Append spaces to d until it's requestedSpaces.
Append spaces to d until it's requestedSpaces. If d is already wide enough, increase nesting and add a line break.
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def foldDoc(docs: Seq[Doc])(f: (Doc, Doc) => Doc): Doc
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def group(d: Doc): Doc
- def hang(d: Doc, i: Indent): Doc
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hsep(docs: List[Doc]): Doc
- def indent(i: Indent, d: Doc): Doc
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leave(cont: TreeCont): TreeCont
- def line: Doc
- def linebreak: Doc
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nest(j: Indent, d: Doc): Doc
- def nesting(f: (Int) => Doc): Doc
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def output(o: Out, r: Remaining, s: String): Trampoline[String]
- def prettyRender(w: Width, doc: Doc): String
- def prune(cont1: TreeCont): TreeCont
- def scan(lengthOfText: Width, outGroup: OutGroup)(cont: TreeCont): Trampoline[TreeCont]
- def softLine: Doc
Space if the resulting output fits on the line, otherwise it behaves like line.
- def space: Doc
- def spaces(n: Int): Doc
- def string(s: String): Doc
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def text(s: String): Doc
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def width(d: Doc, f: (Int) => Doc): Doc