Permalink
Browse files

Reformatted code.

  • Loading branch information...
1 parent aa74bb6 commit ef391f064237093cfdf7ca7dbff59ee1b3b32d29 Evgeny Gerashchenko committed Mar 20, 2013
Showing with 17 additions and 17 deletions.
  1. +17 −17 libraries/tools/kotlin-stdlib-gen/src/generators/GenerateStandardLib.kt
@@ -30,23 +30,23 @@ $COMMON_AUTOGENERATED_WARNING
//
""")
- println("Parsing $file and writing $outFile")
- val reader = FileReader(file).buffered()
- try {
- // TODO ideally we'd use a filterNot() here :)
- val iter = reader.lineIterator()
- while (iter.hasNext()) {
- val line = iter.next()
-
- if (line.startsWith("package")) continue
-
- val xform = f(line)
- writer.println(xform)
+ println("Parsing $file and writing $outFile")
+ val reader = FileReader(file).buffered()
+ try {
+ // TODO ideally we'd use a filterNot() here :)
+ val iter = reader.lineIterator()
+ while (iter.hasNext()) {
+ val line = iter.next()
+
+ if (line.startsWith("package")) continue
+
+ val xform = f(line)
+ writer.println(xform)
+ }
+ } finally {
+ reader.close()
+ reader.close()
}
- } finally {
- reader.close()
- reader.close()
- }
}
} finally {
writer.close()
@@ -111,7 +111,7 @@ fun main(args: Array<String>) {
fun String.flat() = this.replaceAll(" ", "")
-fun List<GenericFunction>.writeTo(file : File, builder : GenericFunction.() -> String) {
+fun List<GenericFunction>.writeTo(file: File, builder: GenericFunction.() -> String) {
println("Generating file: ${file.getPath()}")
val its = FileWriter(file)

0 comments on commit ef391f0

Please sign in to comment.