Skip to content

Commit 0719aea

Browse files
committed
[Compiler plugin] fix "'it' is shadowed"
1 parent 4879cc3 commit 0719aea

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ fun KotlinTypeFacade.analyzeRefinedCallShape(call: FirFunctionCall, reporter: In
3636
return null
3737
}
3838

39-
val newSchema: PluginDataFrameSchema = call.interpreterName(session)?.let {
40-
when (it) {
39+
val newSchema: PluginDataFrameSchema = call.interpreterName(session)?.let { name ->
40+
when (name) {
4141
"toDataFrameDsl" -> {
4242
val list = call.argumentList as FirResolvedArgumentList
4343
val lambda = (list.arguments.singleOrNull() as? FirAnonymousFunctionExpression)?.anonymousFunction
@@ -85,7 +85,7 @@ fun KotlinTypeFacade.analyzeRefinedCallShape(call: FirFunctionCall, reporter: In
8585
PluginDataFrameSchema(emptyList())
8686
}
8787
}
88-
else -> it.load<Interpreter<*>>().let { processor ->
88+
else -> name.load<Interpreter<*>>().let { processor ->
8989
val dataFrameSchema = interpret(call, processor, reporter = reporter)
9090
.let {
9191
val value = it?.value

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ val KotlinTypeFacade.toPluginDataFrameSchema: DataFrameSchema.() -> PluginDataFr
5353
)
5454
}
5555

56-
57-
5856
val KotlinTypeFacade.deserializeToPluginDataFrameSchema: SerializableSchema.() -> PluginDataFrameSchema
5957
get() = {
6058
PluginDataFrameSchema(
@@ -155,7 +153,6 @@ private fun from(type: KType): SerializableKType {
155153
return serializableKType
156154
}
157155

158-
159156
private fun List<KTypeProjection>.mapToConeTypeProjection(): List<TypeProjection> = List(size) {
160157
val typeProjection = get(it)
161158
val type = typeProjection.type
@@ -189,7 +186,6 @@ private fun List<TypeProjection>.mapToConeTypeProjection(): Array<out ConeTypePr
189186
}
190187
}
191188

192-
193189
fun KType.from(): String {
194190
val classifier = classifier ?: error("")
195191
val klass = classifier as? KClass<*> ?: error("")

0 commit comments

Comments
 (0)