Skip to content

QualifierToShortenInfo

data class QualifierToShortenInfo(val qualifierToShorten: SmartPsiElementPointer<KtDotQualifiedExpression>, val shortenedReference: String?)

A class to keep a KtDotQualifiedExpression 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 "bar" when we shorten:

import my.package.foo as bar
... my.package.fo<caret>o ... // -> we can replace this with `bar`.

Constructors

QualifierToShortenInfo

constructor(qualifierToShorten: SmartPsiElementPointer<KtDotQualifiedExpression>, shortenedReference: String?)

Properties

qualifierToShorten

val qualifierToShorten: SmartPsiElementPointer<KtDotQualifiedExpression>

shortenedReference