[LL API] Provide proper way for automatic registration of compiler plugins

This commit is contained in:
Dmitriy Novozhilov
2022-06-10 14:32:43 +03:00
committed by teamcity
parent c979e1edcf
commit 0c6a9d3eac
5 changed files with 51 additions and 8 deletions
@@ -0,0 +1,18 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.project.structure
import org.jetbrains.kotlin.extensions.ProjectExtensionDescriptor
/**
* A service which can return extensions which are registered for some module
*/
public abstract class KtCompilerPluginsProvider {
/**
* Returns a list of extensions of a base [extensionType] which are registered for [module]
*/
public abstract fun <T : Any> getRegisteredExtensions(module: KtSourceModule, extensionType: ProjectExtensionDescriptor<T>): List<T>
}