-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP - Support Kotlin 1.9.21 * Switch to ZacSweers/kotlin-compile-testing for 1.9.21 support * Automated fixes - formatting - regenerate API * Handle ClassGeneration extension phase * Remove unnecessary reference to com.github.tschuchortdev --------- Co-authored-by: Ben Poland <ben.poland@faire.com>
- Loading branch information
1 parent
d372ad2
commit 26abd2d
Showing
9 changed files
with
145 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
libs/arrow-meta/src/main/kotlin/arrow/meta/phases/codegen/asm/ClassGeneration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package arrow.meta.phases.codegen.asm | ||
|
||
import arrow.meta.phases.CompilerContext | ||
import arrow.meta.phases.ExtensionPhase | ||
import org.jetbrains.kotlin.backend.jvm.extensions.ClassGenerator | ||
import org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI | ||
import org.jetbrains.kotlin.ir.declarations.IrClass | ||
|
||
/** | ||
* @see [ExtensionPhase] | ||
* @see [arrow.meta.dsl.codegen.asm.AsmSyntax] | ||
*/ | ||
interface ClassGeneration : ExtensionPhase { | ||
@OptIn(ObsoleteDescriptorBasedAPI::class) | ||
fun CompilerContext.interceptClassGenerator( | ||
generator: ClassGenerator, | ||
declaration: IrClass? | ||
): ClassGenerator | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters