Fix binary compatibility problems in ImportInsertHelper & ShortenReferences

This commit is contained in:
Ilya Kirillov
2020-08-03 15:48:40 +03:00
parent af48f08f9c
commit 606dc2f723
2 changed files with 20 additions and 1 deletions
@@ -29,6 +29,18 @@ abstract class ImportInsertHelper {
forceAllUnderImport: Boolean = false
): ImportDescriptorResult
fun importDescriptor(
file: KtFile,
descriptor: DeclarationDescriptor,
forceAllUnderImport: Boolean = false
): ImportDescriptorResult = importDescriptor(
file,
descriptor,
ActionRunningMode.RUN_IN_CURRENT_THREAD,
forceAllUnderImport
)
companion object {
@JvmStatic
fun getInstance(project: Project): ImportInsertHelper =