@@ -37,7 +37,7 @@ fun IrType.substituteTypeArguments(params: List<IrTypeParameter>, arguments: Lis
3737 else -> this
3838 }
3939
40- fun IrSimpleType.substituteTypeArguments (substitutionMap : Map <IrTypeParameterSymbol , IrTypeArgument >): IrSimpleType {
40+ private fun IrSimpleType.substituteTypeArguments (substitutionMap : Map <IrTypeParameterSymbol , IrTypeArgument >): IrSimpleType {
4141 if (substitutionMap.isEmpty()) return this
4242
4343 val newArguments = arguments.map {
@@ -100,7 +100,7 @@ private fun subProjectedType(substitutionMap: Map<IrTypeParameterSymbol, IrTypeA
100100 }
101101 } ? : makeTypeProjection(t.substituteTypeArguments(substitutionMap), outerVariance)
102102
103- fun IrTypeArgument.upperBound (context : IrPluginContext ) =
103+ private fun IrTypeArgument.upperBound (context : IrPluginContext ) =
104104 when (this ) {
105105 is IrStarProjection -> context.irBuiltIns.anyNType
106106 is IrTypeProjection -> when (this .variance) {
@@ -111,7 +111,7 @@ fun IrTypeArgument.upperBound(context: IrPluginContext) =
111111 else -> context.irBuiltIns.anyNType
112112 }
113113
114- fun IrTypeArgument.lowerBound (context : IrPluginContext ) =
114+ private fun IrTypeArgument.lowerBound (context : IrPluginContext ) =
115115 when (this ) {
116116 is IrStarProjection -> context.irBuiltIns.nothingType
117117 is IrTypeProjection -> when (this .variance) {
@@ -200,7 +200,7 @@ fun IrTypeArgument.withQuestionMark(b: Boolean): IrTypeArgument =
200200
201201typealias TypeSubstitution = (IrType , KotlinUsesExtractor .TypeContext , IrPluginContext ) -> IrType
202202
203- fun matchingTypeParameters (l : IrTypeParameter ? , r : IrTypeParameter ): Boolean {
203+ private fun matchingTypeParameters (l : IrTypeParameter ? , r : IrTypeParameter ): Boolean {
204204 if (l == = r)
205205 return true
206206 if (l == null )
0 commit comments