scalariform

formatter

package formatter

Visibility
  1. Public
  2. All

Type Members

  1. trait AnnotationFormatter extends AnyRef

  2. trait CaseClauseFormatter extends AnyRef

  3. trait CommentFormatter extends AnyRef

  4. class EnsureNewlineAndIndent(indentLevel: Int, relativeTo: Option[Token] = scala.None) extends IntertokenFormatInstruction with Product

    Ensures that the interttoken region ends with NEWLINE INDENT.

  5. trait ExprFormatter extends AnyRef

  6. class FormatResult(predecessorFormatting: Map[Token, IntertokenFormatInstruction], inferredNewlineFormatting: Map[Token, IntertokenFormatInstruction], xmlRewrites: Map[Token, String]) extends Product

  7. trait FormatterDirective extends AnyRef

    attributes: sealed
  8. class FormatterDirectiveParser extends JavaTokenParsers

  9. class FormatterState(indentLevel: Int = 0, indentRelativeToTokenOption: Option[Token] = scala.None, inSingleLineBlock: Boolean = false, expressionBreakHappened: Boolean = false) extends Product

  10. trait HasHiddenTokenInfo extends AnyRef

  11. class IntertokenFormatInstruction extends AnyRef

    attributes: sealed abstract
  12. class PlaceAtColumn(indentLevel: Int, spaces: Int) extends IntertokenFormatInstruction with Product

    Places the token at spaces number of spaces after the indent level, padding with spaces if necessary

  13. class ScalaFormatter extends HasFormattingPreferences with TypeFormatter with AnnotationFormatter with ExprFormatter with HasHiddenTokenInfo with TemplateFormatter with XmlFormatter with CaseClauseFormatter with CommentFormatter

    attributes: abstract
  14. trait SpecificFormatter extends AnyRef

  15. trait TemplateFormatter extends AnyRef

  16. class ToggleFormatting(onOrOff: Boolean) extends FormatterDirective with Product

  17. class ToggleOption(onOrOff: Boolean, optionName: String) extends FormatterDirective with Product

  18. trait TypeFormatter extends AnyRef

  19. trait XmlFormatter extends AnyRef

Value Members

  1. object Compact extends IntertokenFormatInstruction with Product

    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.

  2. object CompactEnsuringGap extends IntertokenFormatInstruction with Product

    Like "Compact", but ensures there is either some comment or a single space.

  3. object CompactPreservingGap extends IntertokenFormatInstruction with Product

    Like "Compact", but will keep at least a single space if there was whitespace before

  4. object FormatterDirectiveParser extends AnyRef

  5. object NoFormatResult extends FormatResult

  6. object ScalaFormatter extends AnyRef

  7. package preferences