AA: deprecate utils in StandaloneUtils
...in favor of StandaloneAnalysisAPISessionBuilder
This commit is contained in:
committed by
Ilya Kirillov
parent
e5d44065ae
commit
e8e88b4eb2
+8
@@ -45,6 +45,10 @@ import org.jetbrains.kotlin.psi.KtFile
|
|||||||
* * [KotlinReferenceProvidersService]
|
* * [KotlinReferenceProvidersService]
|
||||||
* * [KotlinReferenceProviderContributor]
|
* * [KotlinReferenceProviderContributor]
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(
|
||||||
|
"Use StandaloneAnalysisAPISessionBuilder.",
|
||||||
|
ReplaceWith("buildStandaloneAnalysisAPISession { }")
|
||||||
|
)
|
||||||
public fun configureApplicationEnvironment(app: MockApplication) {
|
public fun configureApplicationEnvironment(app: MockApplication) {
|
||||||
if (app.getServiceIfCreated(KotlinReferenceProvidersService::class.java) == null) {
|
if (app.getServiceIfCreated(KotlinReferenceProvidersService::class.java) == null) {
|
||||||
app.registerService(
|
app.registerService(
|
||||||
@@ -83,6 +87,10 @@ public fun configureApplicationEnvironment(app: MockApplication) {
|
|||||||
* * other Java sources in [compilerConfig] (set via [addJavaSourceRoots])
|
* * other Java sources in [compilerConfig] (set via [addJavaSourceRoots])
|
||||||
* * JVM class paths in [compilerConfig] (set via [addJvmClasspathRoots]) as library.
|
* * JVM class paths in [compilerConfig] (set via [addJvmClasspathRoots]) as library.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(
|
||||||
|
"Use StandaloneAnalysisAPISessionBuilder.",
|
||||||
|
ReplaceWith("buildStandaloneAnalysisAPISession { }")
|
||||||
|
)
|
||||||
public fun configureProjectEnvironment(
|
public fun configureProjectEnvironment(
|
||||||
project: MockProject,
|
project: MockProject,
|
||||||
compilerConfig: CompilerConfiguration,
|
compilerConfig: CompilerConfiguration,
|
||||||
|
|||||||
Reference in New Issue
Block a user