From 5dd10447be12bd81ac9e196ff7908dd7ec701f53 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Thu, 10 Oct 2024 07:05:19 -0700 Subject: [PATCH] Spotless --- .../src/main/kotlin/app/cash/burst/kotlin/Argument.kt | 5 ++--- .../main/kotlin/app/cash/burst/kotlin/FunctionSpecializer.kt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/Argument.kt b/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/Argument.kt index e93efbc..07a87f5 100644 --- a/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/Argument.kt +++ b/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/Argument.kt @@ -40,7 +40,7 @@ internal class Argument( /** Returns a name like `orderCoffee_Decaf_Oat` with each argument value inline. */ internal fun name( prefix: String, - arguments: List + arguments: List, ): String { return arguments.joinToString( prefix = prefix, @@ -52,7 +52,7 @@ internal fun name( /** Returns null if we can't compute all possible arguments for this parameter. */ internal fun IrPluginContext.allPossibleArguments( - parameter: IrValueParameter + parameter: IrValueParameter, ): List? { val classId = parameter.type.getClass()?.classId ?: return null val referenceClass = referenceClass(classId)?.owner ?: return null @@ -60,4 +60,3 @@ internal fun IrPluginContext.allPossibleArguments( val enumEntries = referenceClass.declarations.filterIsInstance() return enumEntries.map { Argument(parameter, parameter.type, it) } } - diff --git a/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/FunctionSpecializer.kt b/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/FunctionSpecializer.kt index cd88c41..441a5ee 100644 --- a/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/FunctionSpecializer.kt +++ b/burst-kotlin-plugin/src/main/kotlin/app/cash/burst/kotlin/FunctionSpecializer.kt @@ -68,7 +68,7 @@ internal class FunctionSpecializer( originalParent.addDeclaration(specialization) } originalParent.addDeclaration( - createFunctionThatCallsAllSpecializations(originalDispatchReceiver, specializations) + createFunctionThatCallsAllSpecializations(originalDispatchReceiver, specializations), ) }