FIR IDE: remove unused method in light classes with compilation error
This commit is contained in:
-8
@@ -71,14 +71,6 @@ class FirLightClassForFacade(
|
|||||||
|
|
||||||
override fun getScope(): PsiElement? = parent
|
override fun getScope(): PsiElement? = parent
|
||||||
|
|
||||||
private inline fun <reified T : FirDeclaration, K> KtFile.withFir(body: T.() -> K): K {
|
|
||||||
val resolveState = LowLevelFirApiFacade.getResolveStateFor(this)
|
|
||||||
return LowLevelFirApiFacade.withFirFile(this, resolveState) {
|
|
||||||
require(it is T)
|
|
||||||
it.body()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun loadMethodsFromFile(
|
private fun loadMethodsFromFile(
|
||||||
file: KtFile,
|
file: KtFile,
|
||||||
result: MutableList<KtLightMethod>
|
result: MutableList<KtLightMethod>
|
||||||
|
|||||||
Reference in New Issue
Block a user