object
TokenOps
Type Members
-
type
TokenHash = Long
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
SingleLineBlock(expire: Token, exclude: Set[Range] = Set.empty, disallowSingleLineComments: Boolean = true, penaliseNewlinesInsideTokens: Boolean = false)(implicit line: Line): Policy
-
final
def
asInstanceOf[T0]: T0
-
def
blankLineBeforeDocstring(left: Token, right: Comment)(implicit style: ScalafmtConfig): Boolean
-
def
blankLineBeforeDocstring(left: Token, right: Token)(implicit style: ScalafmtConfig): Boolean
-
val
booleanOperators: Set[String]
-
def
classifyOnRight[A](cls: Classifier[Token, A])(ft: FormatToken): Boolean
-
def
clone(): AnyRef
-
def
defnTemplate(tree: Tree): Option[Template]
-
def
endsWithNoIndent(between: Seq[Token]): Boolean
-
def
endsWithSymbolIdent(tok: Token): Boolean
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
findArgsFor[A <: Tree](token: Token, argss: Seq[Seq[A]], matching: Map[TokenHash, Token]): Option[Seq[A]]
-
def
findLast[A](seq: Seq[A])(cond: (A) ⇒ Boolean): Option[A]
-
val
formatOffCode: Set[String]
-
val
formatOnCode: Set[String]
-
final
def
getClass(): Class[_]
-
-
-
-
def
hash(token: Token): TokenHash
-
def
hashCode(): Int
-
def
identModification(ident: Ident): Modification
-
def
isAttachedSingleLineComment(ft: FormatToken): Boolean
-
def
isBoolOperator(token: Token): Boolean
-
def
isFormatOff(token: Token): Boolean
-
def
isFormatOn(token: Token): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isOpenApply(token: Token, includeCurly: Boolean = false, includeNoParens: Boolean = false): Boolean
-
def
isSingleLineComment(token: Token): Boolean
-
def
isSingleLineComment(c: Comment): Boolean
-
def
isSymbolicIdent(tok: Token): Boolean
-
def
isSymbolicName(name: String): Boolean
-
def
lastToken(tree: Tree): Token
-
def
lastToken(tokens: Tokens): Token
-
final
def
ne(arg0: AnyRef): Boolean
-
def
newlineOkOperator(token: Token): Boolean
-
val
newlineOkOperators: Set[String]
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
rhsIsCommentedOut(formatToken: FormatToken): Boolean
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
tokenLength(token: Token): Int
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Stateless helper functions on scala.meta.Token.