WHAT SCALAFIX COULD DO: // before def someMethod(string: String) { // I like trees println(string.trim.split("/").lastOption) } // after def someMethod(string: String): Unit = println( string .trim .split("/") .lastOption )
WHAT SCALAFIX DOES INSTEAD: // before def someMethod(string: String) { // I like trees println(string.trim.split("/").lastOption) } // after def someMethod(string: String): Unit = { // I like trees println(string.trim.split("/").lastOption) }
SEMANTIC INFORMATION List(1, 2, 3) // Symbol _root_.scala.collection.immutable.List. // Denotation final object List // Synthetic [2..7): apply => _root_.scala.collection.immutable.List.apply (Lscala/collection/Seq;)