mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
[kotlin] Move the typeArguments extension function to the kotlin.base.psi module
^KTIJ-29484 GitOrigin-RevId: d0ed5bffc0a69c828c6f641e75fce4fa15f51c31
This commit is contained in:
committed by
intellij-monorepo-bot
parent
15c997ad34
commit
c166567e02
@@ -317,4 +317,8 @@ fun KtSimpleNameExpression.isPartOfQualifiedExpression(): Boolean {
|
||||
parent = parent.parent
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
fun KtTypeReference?.typeArguments(): List<KtTypeProjection> {
|
||||
return (this?.typeElement as? KtUserType)?.typeArguments.orEmpty()
|
||||
}
|
||||
@@ -250,7 +250,3 @@ private val rangeTypes = setOf(
|
||||
fun ClassDescriptor.isRange(): Boolean {
|
||||
return rangeTypes.any { this.fqNameUnsafe.asString() == it }
|
||||
}
|
||||
|
||||
fun KtTypeReference?.typeArguments(): List<KtTypeProjection> {
|
||||
return (this?.typeElement as? KtUserType)?.typeArguments.orEmpty()
|
||||
}
|
||||
|
||||
@@ -8,12 +8,12 @@ import com.intellij.openapi.project.Project
|
||||
import com.intellij.psi.PsiElement
|
||||
import org.jetbrains.kotlin.diagnostics.Diagnostic
|
||||
import org.jetbrains.kotlin.diagnostics.Errors
|
||||
import org.jetbrains.kotlin.idea.base.resources.KotlinBundle
|
||||
import org.jetbrains.kotlin.idea.base.facet.platform.platform
|
||||
import org.jetbrains.kotlin.idea.base.psi.typeArguments
|
||||
import org.jetbrains.kotlin.idea.base.resources.KotlinBundle
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.analyze
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.resolveToCall
|
||||
import org.jetbrains.kotlin.idea.codeinsight.api.classic.quickfixes.KotlinQuickFixAction
|
||||
import org.jetbrains.kotlin.idea.intentions.typeArguments
|
||||
import org.jetbrains.kotlin.lexer.KtTokens
|
||||
import org.jetbrains.kotlin.platform.jvm.isJvm
|
||||
import org.jetbrains.kotlin.psi.*
|
||||
|
||||
Reference in New Issue
Block a user