[213] Switch to 213 platform
KTI-1114
This commit is contained in:
committed by
Space Team
parent
7f07b2a82c
commit
d4cffb8a5a
+1
-2
@@ -5,7 +5,6 @@
|
||||
|
||||
package org.jetbrains.kotlin.analysis.providers
|
||||
|
||||
import com.intellij.openapi.components.ServiceManager
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.psi.search.GlobalSearchScope
|
||||
import org.jetbrains.kotlin.name.ClassId
|
||||
@@ -50,5 +49,5 @@ public interface KotlinAnnotationsResolverFactory {
|
||||
}
|
||||
|
||||
public fun Project.createAnnotationResolver(searchScope: GlobalSearchScope): KotlinAnnotationsResolver =
|
||||
ServiceManager.getService(this, KotlinAnnotationsResolverFactory::class.java)
|
||||
this.getService(KotlinAnnotationsResolverFactory::class.java)
|
||||
.createAnnotationResolver(searchScope)
|
||||
|
||||
+1
-2
@@ -5,7 +5,6 @@
|
||||
|
||||
package org.jetbrains.kotlin.analysis.providers
|
||||
|
||||
import com.intellij.openapi.components.ServiceManager
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.psi.search.GlobalSearchScope
|
||||
import org.jetbrains.kotlin.name.CallableId
|
||||
@@ -47,5 +46,5 @@ public abstract class KotlinDeclarationProviderFactory {
|
||||
}
|
||||
|
||||
public fun Project.createDeclarationProvider(searchScope: GlobalSearchScope): KotlinDeclarationProvider =
|
||||
ServiceManager.getService(this, KotlinDeclarationProviderFactory::class.java)
|
||||
this.getService(KotlinDeclarationProviderFactory::class.java)
|
||||
.createDeclarationProvider(searchScope)
|
||||
+3
-4
@@ -5,7 +5,6 @@
|
||||
|
||||
package org.jetbrains.kotlin.analysis.providers
|
||||
|
||||
import com.intellij.openapi.components.ServiceManager
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.util.ModificationTracker
|
||||
import org.jetbrains.annotations.TestOnly
|
||||
@@ -109,7 +108,7 @@ public interface KtModuleStateTracker {
|
||||
* @see ModificationTracker
|
||||
*/
|
||||
public fun Project.createProjectWideOutOfBlockModificationTracker(): ModificationTracker =
|
||||
ServiceManager.getService(this, KotlinModificationTrackerFactory::class.java)
|
||||
this.getService(KotlinModificationTrackerFactory::class.java)
|
||||
.createProjectWideOutOfBlockModificationTracker()
|
||||
|
||||
/**
|
||||
@@ -119,7 +118,7 @@ public fun Project.createProjectWideOutOfBlockModificationTracker(): Modificatio
|
||||
* @see ModificationTracker
|
||||
*/
|
||||
public fun KtSourceModule.createModuleWithoutDependenciesOutOfBlockModificationTracker(project: Project): ModificationTracker =
|
||||
ServiceManager.getService(project, KotlinModificationTrackerFactory::class.java)
|
||||
project.getService(KotlinModificationTrackerFactory::class.java)
|
||||
.createModuleWithoutDependenciesOutOfBlockModificationTracker(this)
|
||||
|
||||
/**
|
||||
@@ -129,5 +128,5 @@ public fun KtSourceModule.createModuleWithoutDependenciesOutOfBlockModificationT
|
||||
* @see ModificationTracker
|
||||
*/
|
||||
public fun Project.createAllLibrariesModificationTracker(): ModificationTracker =
|
||||
ServiceManager.getService(this, KotlinModificationTrackerFactory::class.java)
|
||||
this.getService(KotlinModificationTrackerFactory::class.java)
|
||||
.createLibrariesWideModificationTracker()
|
||||
|
||||
+1
-2
@@ -5,7 +5,6 @@
|
||||
|
||||
package org.jetbrains.kotlin.analysis.providers
|
||||
|
||||
import com.intellij.openapi.components.ServiceManager
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.psi.search.GlobalSearchScope
|
||||
import org.jetbrains.kotlin.name.FqName
|
||||
@@ -78,5 +77,5 @@ public abstract class KotlinPackageProviderFactory {
|
||||
}
|
||||
|
||||
public fun Project.createPackageProvider(searchScope: GlobalSearchScope): KotlinPackageProvider =
|
||||
ServiceManager.getService(this, KotlinPackageProviderFactory::class.java)
|
||||
this.getService(KotlinPackageProviderFactory::class.java)
|
||||
.createPackageProvider(searchScope)
|
||||
Reference in New Issue
Block a user