[FIR] Consistently use _function_ instead of _functional_ in names of classes and functions
This commit is contained in:
committed by
Space Team
parent
f268ab8858
commit
89c42e20c9
@@ -5,7 +5,7 @@
|
||||
|
||||
package org.jetbrains.kotlin.fir.renderer
|
||||
|
||||
import org.jetbrains.kotlin.builtins.functions.FunctionalTypeKind
|
||||
import org.jetbrains.kotlin.builtins.functions.FunctionTypeKind
|
||||
import org.jetbrains.kotlin.fir.types.*
|
||||
|
||||
open class ConeTypeRenderer {
|
||||
@@ -15,10 +15,10 @@ open class ConeTypeRenderer {
|
||||
|
||||
open fun renderAsPossibleFunctionType(
|
||||
type: ConeKotlinType,
|
||||
functionalClassKindExtractor: (ConeKotlinType) -> FunctionalTypeKind?,
|
||||
functionClassKindExtractor: (ConeKotlinType) -> FunctionTypeKind?,
|
||||
renderType: ConeTypeProjection.() -> Unit = { render() }
|
||||
) {
|
||||
val kind = functionalClassKindExtractor(type)
|
||||
val kind = functionClassKindExtractor(type)
|
||||
if (kind?.isReflectType != false) {
|
||||
type.renderType()
|
||||
return
|
||||
|
||||
+3
-3
@@ -5,7 +5,7 @@
|
||||
|
||||
package org.jetbrains.kotlin.fir.renderer
|
||||
|
||||
import org.jetbrains.kotlin.builtins.functions.FunctionalTypeKind
|
||||
import org.jetbrains.kotlin.builtins.functions.FunctionTypeKind
|
||||
import org.jetbrains.kotlin.fir.types.ConeKotlinType
|
||||
import org.jetbrains.kotlin.fir.types.ConeTypeProjection
|
||||
|
||||
@@ -19,11 +19,11 @@ class ConeTypeRendererForDebugging() : ConeTypeRenderer() {
|
||||
|
||||
override fun renderAsPossibleFunctionType(
|
||||
type: ConeKotlinType,
|
||||
functionalClassKindExtractor: (ConeKotlinType) -> FunctionalTypeKind?,
|
||||
functionClassKindExtractor: (ConeKotlinType) -> FunctionTypeKind?,
|
||||
renderType: ConeTypeProjection.() -> Unit
|
||||
) {
|
||||
builder.append("R|")
|
||||
super.renderAsPossibleFunctionType(type, functionalClassKindExtractor, renderType)
|
||||
super.renderAsPossibleFunctionType(type, functionClassKindExtractor, renderType)
|
||||
builder.append("|")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user