More nullability update in selectors for compatibility in 181

This commit is contained in:
Nikolay Krasko
2017-12-26 17:32:02 +03:00
parent e66e8bcd07
commit bf393505a9
3 changed files with 3 additions and 3 deletions
@@ -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
@@ -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