Skip to content

Commit dc858cd

Browse files
committed
reformat SimpleCol.kt
1 parent 73b4e80 commit dc858cd

File tree

1 file changed

+4
-2
lines changed
  • plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin/impl

1 file changed

+4
-2
lines changed

plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin/impl/SimpleCol.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@file:Suppress("INVISIBLE_REFERENCE", "CANNOT_OVERRIDE_INVISIBLE_MEMBER")
2-
31
package org.jetbrains.kotlinx.dataframe.plugin.impl
42

53
import org.jetbrains.kotlin.fir.analysis.checkers.fullyExpandedClassId
@@ -19,6 +17,7 @@ data class PluginDataFrameSchema(
1917
companion object {
2018
val EMPTY = PluginDataFrameSchema(emptyList())
2119
}
20+
2221
fun columns(): List<SimpleCol> {
2322
return columns
2423
}
@@ -39,9 +38,11 @@ private fun List<SimpleCol>.asString(indent: String = ""): String {
3938
is SimpleFrameColumn -> {
4039
"${it.name}: *\n" + it.columns().asString("$indent ")
4140
}
41+
4242
is SimpleColumnGroup -> {
4343
"${it.name}:\n" + it.columns().asString("$indent ")
4444
}
45+
4546
is SimpleDataColumn -> {
4647
"${it.name}: ${it.type.type.renderReadable()}"
4748
}
@@ -129,6 +130,7 @@ private fun KotlinTypeFacade.makeNullable(column: SimpleCol): SimpleCol {
129130
is SimpleColumnGroup -> {
130131
SimpleColumnGroup(column.name, column.columns().map { makeNullable(it) })
131132
}
133+
132134
is SimpleFrameColumn -> column
133135
is SimpleDataColumn -> SimpleDataColumn(column.name, column.type.changeNullability { true })
134136
}

0 commit comments

Comments
 (0)