Introduce a util to copy TypeMappingMode for UAST
This commit is contained in:
committed by
Ilya Kirillov
parent
e89a387cd4
commit
b088e742ae
@@ -142,4 +142,20 @@ class TypeMappingMode @TypeMappingModeInternals constructor(
|
||||
needPrimitiveBoxing, false, isForAnnotationParameter, skipDeclarationSiteWildcards, skipDeclarationSiteWildcardsIfPossible,
|
||||
genericArgumentMode, kotlinCollectionsToJavaCollections, genericContravariantArgumentMode, genericInvariantArgumentMode
|
||||
)
|
||||
|
||||
fun mapTypeAliases(
|
||||
genericArgumentMode: TypeMappingMode? = null
|
||||
): TypeMappingMode =
|
||||
TypeMappingMode(
|
||||
needPrimitiveBoxing,
|
||||
needInlineClassWrapping,
|
||||
isForAnnotationParameter,
|
||||
skipDeclarationSiteWildcards,
|
||||
skipDeclarationSiteWildcardsIfPossible,
|
||||
genericArgumentMode ?: this.genericArgumentMode,
|
||||
kotlinCollectionsToJavaCollections,
|
||||
genericContravariantArgumentMode,
|
||||
genericInvariantArgumentMode,
|
||||
mapTypeAliases = true
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user