@@ -37,7 +37,7 @@ fun IrType.substituteTypeArguments(params: List<IrTypeParameter>, arguments: Lis
37
37
else -> this
38
38
}
39
39
40
- fun IrSimpleType.substituteTypeArguments (substitutionMap : Map <IrTypeParameterSymbol , IrTypeArgument >): IrSimpleType {
40
+ private fun IrSimpleType.substituteTypeArguments (substitutionMap : Map <IrTypeParameterSymbol , IrTypeArgument >): IrSimpleType {
41
41
if (substitutionMap.isEmpty()) return this
42
42
43
43
val newArguments = arguments.map {
@@ -100,7 +100,7 @@ private fun subProjectedType(substitutionMap: Map<IrTypeParameterSymbol, IrTypeA
100
100
}
101
101
} ? : makeTypeProjection(t.substituteTypeArguments(substitutionMap), outerVariance)
102
102
103
- fun IrTypeArgument.upperBound (context : IrPluginContext ) =
103
+ private fun IrTypeArgument.upperBound (context : IrPluginContext ) =
104
104
when (this ) {
105
105
is IrStarProjection -> context.irBuiltIns.anyNType
106
106
is IrTypeProjection -> when (this .variance) {
@@ -111,7 +111,7 @@ fun IrTypeArgument.upperBound(context: IrPluginContext) =
111
111
else -> context.irBuiltIns.anyNType
112
112
}
113
113
114
- fun IrTypeArgument.lowerBound (context : IrPluginContext ) =
114
+ private fun IrTypeArgument.lowerBound (context : IrPluginContext ) =
115
115
when (this ) {
116
116
is IrStarProjection -> context.irBuiltIns.nothingType
117
117
is IrTypeProjection -> when (this .variance) {
@@ -200,7 +200,7 @@ fun IrTypeArgument.withQuestionMark(b: Boolean): IrTypeArgument =
200
200
201
201
typealias TypeSubstitution = (IrType , KotlinUsesExtractor .TypeContext , IrPluginContext ) -> IrType
202
202
203
- fun matchingTypeParameters (l : IrTypeParameter ? , r : IrTypeParameter ): Boolean {
203
+ private fun matchingTypeParameters (l : IrTypeParameter ? , r : IrTypeParameter ): Boolean {
204
204
if (l == = r)
205
205
return true
206
206
if (l == null )
0 commit comments