class
FormatOps extends AnyRef
Instance Constructors
-
new
FormatOps(tree: Tree, style: ScalaStyle)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
OneArgOneLineSplit(open: Delim)(implicit line: Line): Policy
-
final
def
asInstanceOf[T0]: T0
-
def
chainOptimalToken(chain: Vector[Select]): Token
-
def
clone(): AnyRef
-
def
defnSiteLastToken(tree: Tree): Token
-
val
dequeueSpots: Set[TokenHash]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
findFirst(start: FormatToken, end: Token)(f: (FormatToken) ⇒ Boolean): Option[FormatToken]
-
def
functionExpire(function: Function): Token
-
def
getArrow(caseStat: Case): Token
-
final
def
getClass(): Class[_]
-
def
getExcludeIfEndingWithBlock(end: Token): Set[Range]
-
def
getRightAttachedComment(token: Token): Token
-
def
getSelectsLastToken(dot: .): Token
-
def
gets2x(tok: FormatToken): Boolean
-
def
hashCode(): Int
-
def
insideBlock(start: FormatToken, end: Token, matches: (Token) ⇒ Boolean): Set[Token]
-
final
def
isInstanceOf[T0]: Boolean
-
def
isJsNative(jsToken: Token): Boolean
-
def
isMarginizedString(token: Token): Boolean
-
def
isTripleQuote(token: Token): Boolean
-
def
lastTokenInChain(chain: Vector[Select]): Token
-
lazy val
leftTok2tok: Map[Token, FormatToken]
-
val
matchingParentheses: Map[TokenHash, Token]
-
final
def
ne(arg0: AnyRef): Boolean
-
-
-
def
noOptimizationZones(tree: Tree): Set[Token]
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
owners(token: Token): Tree
-
val
ownersMap: Map[TokenHash, Tree]
-
val
packageTokens: Set[Token]
-
def
parensRange(open: Token): Range
-
def
penalizeAllNewlines(expire: Token, penalty: Int)(implicit line: Line): Policy
-
def
penalizeNewlineByNesting(from: Token, to: Token)(implicit line: Line): Policy
-
-
final
def
rhsOptimalToken(start: FormatToken): Token
-
def
selectExpire(dot: .): Token
-
final
def
startsStatement(tok: FormatToken): Boolean
-
val
statementStarts: Map[TokenHash, Tree]
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
templateCurly(template: Template): Option[Token]
-
def
templateCurly(owner: Tree): Token
-
def
toString(): String
-
lazy val
tok2idx: Map[FormatToken, Int]
-
-
val
tree: Tree
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Helper functions for generating splits/policies for a given tree.