format.span

Undocumented in source.

Members

Classes

AlignedSpan
class AlignedSpan

Span that ensure breaks are aligned with the start of the span.

CompactListSpan
class CompactListSpan
Undocumented in source.
ConditionalSpan
class ConditionalSpan

Span used to format Condition expression, of the form: condition ? ifTrue : ifFalse

ExpandingListSpan
class ExpandingListSpan
Undocumented in source.
IndentSpan
class IndentSpan

This span can indent multiple times.

ListSpan
class ListSpan

Span ensuring lists of items are formatted as expected.

PrefixSpan
class PrefixSpan

This span only has a cost when directly broken.

Span
class Span
Undocumented in source.
StorageClassSpan
class StorageClassSpan

Span that do not cause any indentation and is cheap to break.

Functions

canSplit
bool canSplit(Span span, SolveState s, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(Span span, Span s)
Undocumented in source. Be warned that the author may not have intended to support it.
getAlignIndex
size_t getAlignIndex(Span span, SolveState s, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
getExtraIndent
uint getExtraIndent(Span span, Span base, SolveState s, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
getIndent
uint getIndent(Span span, SolveState s, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
getTop
Span getTop(Span span)
Undocumented in source. Be warned that the author may not have intended to support it.
isSameLevel
bool isSameLevel(Span a, Span b)
Undocumented in source. Be warned that the author may not have intended to support it.
mustSplit
bool mustSplit(Span span, SolveState s, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta