Make project compilable after fixes about generic nullability
This commit is contained in:
@@ -38,19 +38,19 @@ public interface ResolutionFacade {
|
||||
public val moduleDescriptor: ModuleDescriptor
|
||||
|
||||
// get service for the module this resolution was created for
|
||||
public fun <T> getFrontendService(serviceClass: Class<T>): T
|
||||
public fun <T : Any> getFrontendService(serviceClass: Class<T>): T
|
||||
|
||||
public fun <T> getIdeService(serviceClass: Class<T>): T
|
||||
public fun <T : Any> getIdeService(serviceClass: Class<T>): T
|
||||
|
||||
// get service for the module defined by PsiElement/ModuleDescriptor passed as parameter
|
||||
public fun <T> getFrontendService(element: PsiElement, serviceClass: Class<T>): T
|
||||
public fun <T : Any> getFrontendService(element: PsiElement, serviceClass: Class<T>): T
|
||||
|
||||
public fun <T> getFrontendService(moduleDescriptor: ModuleDescriptor, serviceClass: Class<T>): T
|
||||
public fun <T : Any> getFrontendService(moduleDescriptor: ModuleDescriptor, serviceClass: Class<T>): T
|
||||
|
||||
}
|
||||
|
||||
public inline fun <reified T> ResolutionFacade.frontendService(): T
|
||||
public inline fun <reified T : Any> ResolutionFacade.frontendService(): T
|
||||
= this.getFrontendService(javaClass<T>())
|
||||
|
||||
public inline fun <reified T> ResolutionFacade.ideService(): T
|
||||
public inline fun <reified T : Any> ResolutionFacade.ideService(): T
|
||||
= this.getIdeService(javaClass<T>())
|
||||
Reference in New Issue
Block a user