FIR IDE: Invert the order of the scopes for completion
This way local declarations will be fetched first
This commit is contained in:
+4
-1
@@ -137,7 +137,10 @@ internal class KtFirScopeProvider(
|
|||||||
firLocalScopes.mapTo(this, ::convertToKtScope)
|
firLocalScopes.mapTo(this, ::convertToKtScope)
|
||||||
}
|
}
|
||||||
|
|
||||||
KtScopeContext(getCompositeScope(allKtScopes), implicitReceiversTypes)
|
KtScopeContext(
|
||||||
|
getCompositeScope(allKtScopes.asReversed()),
|
||||||
|
implicitReceiversTypes.asReversed()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun KtFile.findFunctionDeclarationAt(offset: Int): KtNamedFunction? =
|
private fun KtFile.findFunctionDeclarationAt(offset: Int): KtNamedFunction? =
|
||||||
|
|||||||
Reference in New Issue
Block a user