package formatter
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- trait AnnotationFormatter extends AnyRef
- trait CaseClauseFormatter extends AnyRef
- trait CommentFormatter extends AnyRef
-
case class
EnsureNewlineAndIndent
(indentLevel: Int, relativeTo: Option[Token] = None) extends IntertokenFormatInstruction with Product with Serializable
Ensures that the interttoken region ends with NEWLINE INDENT.
- trait ExprFormatter extends AnyRef
- case class FormatResult (predecessorFormatting: Map[Token, IntertokenFormatInstruction], inferredNewlineFormatting: Map[Token, IntertokenFormatInstruction], xmlRewrites: Map[Token, String]) extends Product with Serializable
- sealed trait FormatterDirective extends AnyRef
- class FormatterDirectiveParser extends JavaTokenParsers
- case class FormatterState (indentLevel: Int = 0, indentRelativeToTokenOption: Option[Token] = None, inSingleLineBlock: Boolean = false, expressionBreakHappened: Boolean = false) extends Product with Serializable
- trait HasHiddenTokenInfo extends AnyRef
- sealed abstract class IntertokenFormatInstruction extends AnyRef
-
case class
PlaceAtColumn
(indentLevel: Int, spaces: Int, relativeTo: Option[Token] = None) extends IntertokenFormatInstruction with Product with Serializable
Places the token at spaces number of spaces after the indent level, padding with spaces if necessary
- abstract class ScalaFormatter extends HasFormattingPreferences with TypeFormatter with AnnotationFormatter with ExprFormatter with HasHiddenTokenInfo with TemplateFormatter with XmlFormatter with CaseClauseFormatter with CommentFormatter
- trait SpecificFormatter extends AnyRef
- trait TemplateFormatter extends AnyRef
- case class ToggleFormatting (onOrOff: Boolean) extends FormatterDirective with Product with Serializable
- case class ToggleOption (onOrOff: Boolean, optionName: String) extends FormatterDirective with Product with Serializable
- trait TypeFormatter extends AnyRef
- trait XmlFormatter extends AnyRef
Value Members
- object Alignment
-
object
Compact
extends IntertokenFormatInstruction with Product with Serializable
Packs the comments together as compactly as possible, eliminating as much non-comment whitespace as possible while ensuring that the lexer produces the same tokens.
-
object
CompactEnsuringGap
extends IntertokenFormatInstruction with Product with Serializable
Like "Compact", but ensures there is either some comment or a single space.
-
object
CompactPreservingGap
extends IntertokenFormatInstruction with Product with Serializable
Like "Compact", but will keep at least a single space if there was whitespace before
- object FormatResult extends Serializable
- object FormatterDirectiveParser
- object NoFormatResult extends FormatResult
- object ScalaFormatter