case classDocument(layout: Layout, links: Links) extends Product with Serializable
A pretty-printed document, consisting of layout for the
pretty-printed representation and associated links.
The link information maps pretty-printed values to the
offset ranges at which their printed representation occurs
in the layout. In other words, for a given value v the
start of the position range will be the offset at which the
pretty-printed representation of v starts in the layout.
The end of the range is where that representation finishes.
It is possible for a value to be linked to more than one
range.
See the link combinator for information on how to
specify the association between a value and the document
that represents it.
A pretty-printed document, consisting of layout for the pretty-printed representation and associated links. The link information maps pretty-printed values to the offset ranges at which their printed representation occurs in the layout. In other words, for a given value
v
the start of the position range will be the offset at which the pretty-printed representation ofv
starts in the layout. The end of the range is where that representation finishes. It is possible for a value to be linked to more than one range.See the
link
combinator for information on how to specify the association between a value and the document that represents it.