More nullability update in selectors for compatibility in 181
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class KotlinCallExpressionWithLambdaSelectioner : ExtendWordSelectionHandlerBase
|
||||
override fun canSelect(e: PsiElement): Boolean
|
||||
= e is KtCallExpression && e.hasLambda()
|
||||
|
||||
override fun select(e: PsiElement, editorText: CharSequence, cursorOffset: Int, editor: Editor?): List<TextRange>? {
|
||||
override fun select(e: PsiElement, editorText: CharSequence, cursorOffset: Int, editor: Editor): List<TextRange>? {
|
||||
if (e !is KtCallExpression) return null
|
||||
|
||||
val endOffset = e.valueArgumentList?.endOffset ?: return null
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import org.jetbrains.kotlin.psi.psiUtil.getStrictParentOfType
|
||||
import org.jetbrains.kotlin.psi.psiUtil.startOffset
|
||||
|
||||
class KotlinSuperTypeSelectioner : ExtendWordSelectionHandlerBase() {
|
||||
override fun canSelect(e: PsiElement?): Boolean {
|
||||
override fun canSelect(e: PsiElement): Boolean {
|
||||
return e is KtSuperTypeList && e.getStrictParentOfType<KtObjectDeclaration>() == null
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.jetbrains.kotlin.psi.psiUtil.startOffset
|
||||
|
||||
class KotlinTypeSelectioner : ExtendWordSelectionHandlerBase() {
|
||||
|
||||
override fun canSelect(e: PsiElement?): Boolean {
|
||||
override fun canSelect(e: PsiElement): Boolean {
|
||||
return e is KtTypeReference
|
||||
&& e.getStrictParentOfType<KtObjectDeclaration>() == null
|
||||
&& e.getStrictParentOfType<KtParameter>() == null
|
||||
|
||||
Reference in New Issue
Block a user