-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*NOTE:* JS support is currently inoperable with 1.9. We are debating continued support. * Add support for Kotlin 1.9 * Disable js example for RC. Co-authored-by: Corbin McNeely-Smith <restingbull@mcneely-smith.com> Co-authored-by: Corbin McNeely-Smith <58151731+restingbull@users.noreply.github.com>
- Loading branch information
1 parent
eb251f9
commit 55f60ec
Showing
21 changed files
with
386 additions
and
177 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
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
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
19 changes: 9 additions & 10 deletions
19
src/main/kotlin/io/bazel/kotlin/plugin/jdeps/JdepsGenComponentRegistrar.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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
package io.bazel.kotlin.plugin.jdeps | ||
|
||
import com.intellij.mock.MockProject | ||
import org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar | ||
import org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar | ||
import org.jetbrains.kotlin.config.CompilerConfiguration | ||
import org.jetbrains.kotlin.extensions.StorageComponentContainerContributor | ||
import org.jetbrains.kotlin.resolve.jvm.extensions.AnalysisHandlerExtension | ||
|
||
@OptIn(org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi::class) | ||
class JdepsGenComponentRegistrar : ComponentRegistrar { | ||
class JdepsGenComponentRegistrar : CompilerPluginRegistrar() { | ||
|
||
override fun registerProjectComponents( | ||
project: MockProject, | ||
configuration: CompilerConfiguration, | ||
) { | ||
override val supportsK2: Boolean | ||
get() = false | ||
|
||
override fun ExtensionStorage.registerExtensions(configuration: CompilerConfiguration) { | ||
// Capture all types referenced by the compiler for this module and look up the jar from which | ||
// they were loaded from | ||
val extension = JdepsGenExtension(project, configuration) | ||
AnalysisHandlerExtension.registerExtension(project, extension) | ||
StorageComponentContainerContributor.registerExtension(project, extension) | ||
val extension = JdepsGenExtension(configuration) | ||
AnalysisHandlerExtension.registerExtension(extension) | ||
StorageComponentContainerContributor.registerExtension(extension) | ||
} | ||
} |
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
Oops, something went wrong.