class
FormatOps extends AnyRef
Instance Constructors
-
new
FormatOps(tree: Tree, initStyle: ScalafmtConfig)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
-
final
def
==(arg0: Any): Boolean
-
def
OneArgOneLineSplit(open: Token, noTrailingCommas: Boolean = false)(implicit line: Line): Policy
-
def
UnindentAtExclude(exclude: Set[Token], indent: Length): Pf
-
val
argumentStarts: Map[TokenHash, Tree]
-
final
def
asInstanceOf[T0]: T0
-
def
binPackParentConstructorSplits(owners: Set[Tree], lastToken: Token, indent: Int)(implicit line: Line): Seq[Split]
-
def
chainOptimalToken(chain: Vector[Select]): Token
-
def
clone(): AnyRef
-
def
ctorWithChain(ownerSet: Set[Tree], lastToken: Token): Policy
-
def
decideNewlinesOnlyAfterClose(split: Split)(close: Token): Pf
-
def
decideNewlinesOnlyAfterToken(token: Token): Pf
-
def
decideNewlinesOnlyBeforeClose(split: Split)(close: Token): Pf
-
def
defnSiteLastToken(close: FormatToken, tree: Tree): Token
-
def
delayedBreakPolicy(leftCheck: Option[(Token) ⇒ Boolean])(onBreakPolicy: Policy): Policy
-
val
dequeueSpots: Set[TokenHash]
-
implicit
val
dialect: Dialect
-
def
distance(left: Token, right: Token): Int
-
val
emptyQueueSpots: 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]
-
val
forceConfigStyle: Set[Tree]
-
def
functionExpire(function: Function): (Token, ExpiresOn)
-
def
getApplyIndent(leftOwner: Tree, isConfigStyle: Boolean = false): Num
-
def
getArrow(caseStat: Case): Token
-
final
def
getClass(): Class[_]
-
def
getElseChain(term: If): Seq[Token]
-
def
getExcludeIf(end: Token, cond: (Token) ⇒ Boolean = _.is[T.RightBrace]): Set[Range]
-
def
getForceConfigStyle: (Set[Tree], Set[TokenHash])
-
def
getOptimalTokenFor(ft: FormatToken): Token
-
def
getOptimalTokenFor(token: Token): Token
-
def
getSelectsLastToken(dot: Dot): Token
-
def
hashCode(): Int
-
val
importTokens: Set[Token]
-
def
infixIndent(owner: Tree, op: Name, rhsArgs: Seq[Tree], formatToken: FormatToken, isNewline: Boolean)(implicit style: ScalafmtConfig): Int
-
def
infixIndent(owner: ApplyInfix, formatToken: FormatToken, isNewline: Boolean)(implicit style: ScalafmtConfig): Int
-
def
infixSplit(owner: Tree, op: Name, rhsArgs: Seq[Tree], formatToken: FormatToken)(implicit line: Line, style: ScalafmtConfig): Seq[Split]
-
def
infixSplit(owner: ApplyInfix, formatToken: FormatToken)(implicit line: Line, style: ScalafmtConfig): Seq[Split]
-
-
def
insideBlock(start: FormatToken, end: Token, matches: (Token) ⇒ Boolean): Set[Token]
-
def
isBinPack(owner: Tree): Boolean
-
def
isEmptyFunctionBody(tree: Tree): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isJsNative(jsToken: Token): Boolean
-
def
isMarginizedString(token: Token): Boolean
-
def
isSingleIdentifierAnnotation(tok: FormatToken): Boolean
-
def
isTripleQuote(token: Token): Boolean
-
final
def
leadingComment(formatToken: FormatToken): Token
-
def
matching(token: Token): Token
-
def
matchingOpt(token: Token): Option[Token]
-
final
def
ne(arg0: AnyRef): Boolean
-
def
newlinesOnlyBeforeClosePolicy(close: Token)(implicit line: Line): Policy
-
-
-
-
final
def
nextNonCommentWithCount(curr: FormatToken, accum: Int = 0): (Int, FormatToken)
-
def
noOptimizationZones(tree: Tree): Set[Token]
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
opensConfigStyle(formatToken: FormatToken): Boolean
-
val
optionalNewlines: Set[TokenHash]
-
def
owners(token: Token): Tree
-
val
packageTokens: Set[Token]
-
def
parensRange(open: Token): Range
-
def
penalizeAllNewlines(expire: Token, penalty: Int, penalizeLambdas: Boolean = true, ignore: (FormatToken) ⇒ Boolean = _ => false, penaliseNewlinesInsideTokens: Boolean = false)(implicit line: Line): Policy
-
def
penalizeNewlineByNesting(from: Token, to: Token)(implicit line: Line): Policy
-
-
-
final
def
prevNonCommentWithCount(curr: FormatToken, accum: Int = 0): (Int, FormatToken)
-
final
def
rhsOptimalToken(start: FormatToken)(implicit style: ScalafmtConfig): Token
-
-
final
def
startsNewBlock(t: Token): Boolean
-
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
-
-
val
tree: Tree
-
final
def
vAlignDepth(tree: Tree): Int
-
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
xmlSpace(owner: Tree): Modification
Helper functions for generating splits/policies for a given tree.