Packages

o

scalafix.util

TokenOps

object TokenOps

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TokenOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def needsLeadingSpaceBeforeColon(ident: Token): Boolean

    Returns true if this token is an identifier that requires a leading space before colon.

    Returns true if this token is an identifier that requires a leading space before colon.

    Example: needsLeadingSpaceBeforeColon(foo_) // true needsLeadingSpaceBeforeColon(foo) // false val foo_ : Int = 2 // OK val foo_: Int = 2 // ERROR val foo: Int = 2 // OK