Class

org.scalafmt.internal

Router

Related Doc: package internal

Permalink

class Router extends ScalaFmtLogger

Assigns splits to format tokens.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Router
  2. ScalaFmtLogger
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Router(style: ScalaStyle, tree: Tree, tokens: Array[FormatToken], matchingParentheses: Map[TokenHash, Token], statementStarts: Map[TokenHash, Tree], ownersMap: Map[TokenHash, Tree])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def OneArgOneLineSplit(open: Delim)(implicit line: Line): Policy

    Permalink
  5. def SingleLineBlock(expire: Token, exclude: Set[Range] = Set.empty)(implicit line: Line): Policy

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def cleanup(token: Token): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def defnSiteLastToken(tree: Tree): Token

    Permalink
  10. def defnTemplate(tree: Tree): Option[Template]

    Permalink
  11. def endsWithNoIndent(between: Vector[Whitespace]): Boolean

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def escape(raw: String): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def findFirst(start: FormatToken, end: Token)(f: (FormatToken) ⇒ Boolean): Option[FormatToken]

    Permalink
    Annotations
    @tailrec()
  17. def findSiblingGuard(generator: Generator): Option[Guard]

    Permalink
  18. def getArrow(caseStat: Case): Token

    Permalink
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getSplits(formatToken: FormatToken): Seq[Split]

    Permalink
  21. def getSplitsMemo(formatToken: FormatToken): Seq[Split]

    Permalink

    Assigns possible splits to a FormatToken.

    Assigns possible splits to a FormatToken.

    The FormatToken can be considered as a node in a graph and the splits as edges. Given a format token (a node in the graph), Route determines which edges lead out from the format token.

  22. def gets2x(tok: FormatToken): Boolean

    Permalink
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def header[T](t: T): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  25. def identModification(ident: Ident): Modification

    Permalink
  26. def insideBlock(start: FormatToken, end: Token): Set[Range]

    Permalink
  27. def isAttachedComment(token: Token, between: Vector[Whitespace]): Boolean

    Permalink
  28. def isBoolOperator(token: Token): Boolean

    Permalink
  29. def isCallSite(tree: Tree): Boolean

    Permalink
  30. def isDefnSite(tree: Tree): Boolean

    Permalink
  31. def isDocstring(token: Token): Boolean

    Permalink
  32. def isInlineComment(token: Token): Boolean

    Permalink
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def log(t: Tree, tokensOnly: Boolean = false): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  35. def log(token: Token): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  36. def log(tokens: Tokens): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  37. def log(tokens: Token*): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  38. def log(formatToken: FormatToken): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  39. def log(split: Split): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  40. val logger: PrintlnLogger.type

    Permalink
    Definition Classes
    ScalaFmtLogger
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. def nestedApplies(tree: Tree): Int

    Permalink

    How many parents of tree are Term.Apply?

  43. def nestedSelect(tree: Tree): Int

    Permalink
  44. def newlines2Modification(between: Vector[Whitespace]): Modification

    Permalink
  45. def newlinesBetween(between: Vector[Whitespace]): Int

    Permalink
  46. def next(tok: FormatToken): FormatToken

    Permalink
  47. final def nextNonComment(curr: FormatToken): FormatToken

    Permalink
    Annotations
    @tailrec()
  48. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  49. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  50. def owners(token: Token): Tree

    Permalink
    Annotations
    @inline()
  51. val packageTokens: Set[Token]

    Permalink
  52. def penalizeNewlineByNesting(from: Token, to: Token)(implicit line: Line): Policy

    Permalink
  53. def prev(tok: FormatToken): FormatToken

    Permalink
  54. def reveal(s: String): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  55. def rhsIsCommentedOut(formatToken: FormatToken): Boolean

    Permalink
  56. final def rhsOptimalToken(start: FormatToken): Token

    Permalink
    Annotations
    @tailrec()
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  58. def templateLastToken(template: Template): Option[Token]

    Permalink
  59. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  60. def treeDepth(tree: Tree): Int

    Permalink

    Calculates depth to deepest child in tree.

  61. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ScalaFmtLogger

Inherited from AnyRef

Inherited from Any

Ungrouped