J2K: do not produce redundant "internal" words for members in an internal class

This commit is contained in:
Valentin Kipyatkov
2015-09-16 21:50:01 +03:00
parent 367b32c309
commit 0cc2158ec1
260 changed files with 459 additions and 448 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
internal fun foo() {
fun foo() {
when (a) {
1 -> {
val x = 1
@@ -1,4 +1,4 @@
internal fun foo() {
fun foo() {
Loop@ while (true) {
when (take()) {
1 -> continue
+1 -1
View File
@@ -3,7 +3,7 @@ internal enum class ColorEnum {
}
internal class MyClass {
internal fun method(colorEnum: ColorEnum): Int {
fun method(colorEnum: ColorEnum): Int {
when (colorEnum) {
ColorEnum.GREEN -> return 1
else -> return 2
+1 -1
View File
@@ -1,4 +1,4 @@
internal fun foo() {
fun foo() {
when (a) {
-> {
println("1")
+1 -1
View File
@@ -1,4 +1,4 @@
internal fun foo(a: Int): Int {
fun foo(a: Int): Int {
when (a) {
1 -> {
println("1")