KT-62676 [AA] Introduce ShortenOptions class
This class should contain 'global' settings for reference shortening; ATM it only contains the `removeThis` flag In the future this setting might be merged together with `ShortenStrategy` to be computed on per-element basis
This commit is contained in:
+2
@@ -12,6 +12,7 @@ import com.intellij.psi.SmartPsiElementPointer
|
||||
import org.jetbrains.kotlin.KtFakeSourceElementKind
|
||||
import org.jetbrains.kotlin.analysis.api.components.KtReferenceShortener
|
||||
import org.jetbrains.kotlin.analysis.api.components.ShortenCommand
|
||||
import org.jetbrains.kotlin.analysis.api.components.ShortenOptions
|
||||
import org.jetbrains.kotlin.analysis.api.components.ShortenStrategy
|
||||
import org.jetbrains.kotlin.analysis.api.fir.KtFirAnalysisSession
|
||||
import org.jetbrains.kotlin.analysis.api.fir.components.ElementsToShortenCollector.PartialOrderOfScope.Companion.toPartialOrder
|
||||
@@ -78,6 +79,7 @@ internal class KtFirReferenceShortener(
|
||||
override fun collectShortenings(
|
||||
file: KtFile,
|
||||
selection: TextRange,
|
||||
shortenOptions: ShortenOptions,
|
||||
classShortenStrategy: (KtClassLikeSymbol) -> ShortenStrategy,
|
||||
callableShortenStrategy: (KtCallableSymbol) -> ShortenStrategy
|
||||
): ShortenCommand {
|
||||
|
||||
Reference in New Issue
Block a user