Comparing version 1.4.12 to 1.4.13
@@ -40,3 +40,6 @@ "use strict"; | ||
result.push("("); | ||
result.push("\n"); | ||
// Small QoL improvement for single-arg classes, so they don't format weird. | ||
if (klass.ctor.length > 1) { | ||
result.push("\n"); | ||
} | ||
indent++; | ||
@@ -87,5 +90,2 @@ this.push(result, klass.ctor.map((value) => this.printParameter(value, undefined, options)), indent, ",\n"); | ||
result.push(this.print(value, indent, options)); | ||
if (index < klass.innerClasses.length - 1) { | ||
result.push("\n\n"); | ||
} | ||
}); | ||
@@ -92,0 +92,0 @@ if (klass.statements.length) { |
@@ -8,3 +8,2 @@ "use strict"; | ||
class Foob( | ||
private val foo: Foo? | ||
@@ -17,3 +16,2 @@ ) : Hateful() { | ||
class Barb( | ||
whatever: Hi | ||
@@ -20,0 +18,0 @@ ) |
{ | ||
"name": "martok", | ||
"version": "1.4.12", | ||
"version": "1.4.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -50,3 +50,8 @@ import { kotlin } from "./Klass"; | ||
result.push("("); | ||
result.push("\n"); | ||
// Small QoL improvement for single-arg classes, so they don't format weird. | ||
if (klass.ctor.length > 1) { | ||
result.push("\n"); | ||
} | ||
indent++; | ||
@@ -121,5 +126,2 @@ this.push( | ||
result.push(this.print(value, indent, options)); | ||
if (index < klass.innerClasses.length - 1) { | ||
result.push("\n\n"); | ||
} | ||
}); | ||
@@ -126,0 +128,0 @@ if (klass.statements.length) { |
@@ -7,3 +7,2 @@ import { kotlin } from "../../kotlin/Klass"; | ||
class Foob( | ||
private val foo: Foo? | ||
@@ -16,3 +15,2 @@ ) : Hateful() { | ||
class Barb( | ||
whatever: Hi | ||
@@ -19,0 +17,0 @@ ) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
284268