| Interface | Description |
|---|---|
| CommentsHelper |
Rewrite comments.
|
| Input.Tok |
A
Tok ("tock") is a token, or a comment, or a newline, or a maximal string of blanks. |
| Input.Token |
A
Token is a language-level token. |
| Op |
An
Op is a member of the sequence of formatting operations emitted by OpsBuilder
and transformed by DocBuilder into a Doc. |
| Class | Description |
|---|---|
| Doc | |
| Doc.Break |
A leaf node in a
Doc for an optional break. |
| Doc.State |
State for writing.
|
| Doc.Token |
A leaf
Doc for a token. |
| DocBuilder | |
| FormatterDiagnostic |
An error that prevented formatting from succeeding.
|
| Indent |
An indent for a
Doc.Level or Doc.Break. |
| Indent.Const |
A constant function, returning a constant indent.
|
| Indent.If |
A conditional function, whose value depends on whether a break was taken.
|
| Input |
An input to the formatter.
|
| InputOutput | |
| Newlines |
Platform-independent newline handling.
|
| OpenOp |
An
OpenOp opens a level. |
| OpsBuilder | |
| OpsBuilder.BlankLineWanted |
A request to add or remove a blank line in the output.
|
| Output |
An output from the formatter.
|
| Output.BreakTag |
Unique identifier for a break.
|
| Enum | Description |
|---|---|
| CloseOp |
A
CloseOp closes a level. |
| Doc.FillMode | |
| Doc.Token.RealOrImaginary |
Is a Token a real token, or imaginary (e.g., a token generated incorrectly, or an EOF)?
|
| Error | Description |
|---|---|
| FormattingError |
An unchecked formatting error.
|
Copyright © 2015–2017 Google Inc.. All rights reserved.