[Analysis API Standalone] return as a result created module in KtModuleProviderBuilder.addModule so it can be reused
^KT-60884
This commit is contained in:
committed by
Space Team
parent
fcf062a252
commit
d459981974
+3
-2
@@ -15,12 +15,13 @@ import kotlin.contracts.InvocationKind
|
||||
import kotlin.contracts.contract
|
||||
|
||||
public class KtModuleProviderBuilder(
|
||||
public val kotlinCoreProjectEnvironment: KotlinCoreProjectEnvironment
|
||||
public val kotlinCoreProjectEnvironment: KotlinCoreProjectEnvironment,
|
||||
) {
|
||||
private val mainModules: MutableList<KtModule> = mutableListOf()
|
||||
|
||||
public fun addModule(module: KtModule) {
|
||||
public fun <M : KtModule> addModule(module: M): M {
|
||||
mainModules.add(module)
|
||||
return module
|
||||
}
|
||||
|
||||
public lateinit var platform: TargetPlatform
|
||||
|
||||
Reference in New Issue
Block a user