Skip to content

TypeToShortenInfo

data class TypeToShortenInfo(val typeToShorten: SmartPsiElementPointer<KtUserType>, val shortenedReference: String?)

A class to keep a KtUserType to shorten and what shape the shortened result has to be. shortenedReference is the expected result of shortening in a string form. If shortenedReference is null, it means the shortening will simply delete the qualifier. Note that currently the only usage of shortenedReference is the case we have the import-alias. For example, shortenedReference will be "AliasType" when we shorten:

import my.package.NewType as AliasType
... my.package.Ne<caret>wType ... // -> we can replace this with `AliasType`.

Constructors

TypeToShortenInfo

constructor(typeToShorten: SmartPsiElementPointer<KtUserType>, shortenedReference: String?)

Properties

shortenedReference

typeToShorten

val typeToShorten: SmartPsiElementPointer<KtUserType>