com.choreograph.scalafix.OptionWhen
See theOptionWhen companion object
Rewrites if-then-else expressions with None/Some branches to Option.when calls.
Examples:
if condition then None else Some(value) → Option.when(!condition)(value)
if condition then Some(value) else None → Option.when(condition)(value)
Attributes
-
Companion
-
object
-
Source
-
OptionWhen.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Attributes
-
Inherited from:
-
Rule
Attributes
-
Inherited from:
-
Rule
Attributes
-
Inherited from:
-
Rule
Attributes
-
Inherited from:
-
Rule
Attributes
-
Inherited from:
-
Rule
Attributes
-
Inherited from:
-
Rule
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
-
Returns
-
a string representation of the object.
-
Definition Classes
-
-
Inherited from:
-
Rule
Attributes
-
Inherited from:
-
Rule
Attributes
-
Inherited from:
-
Rule