Support foreign nullability annotations
#KT-10418 Fixed #KT-10594 Fixed
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ class ReplaceContainsIntention : SelfTargetingRangeIntention<KtDotQualifiedExpre
|
||||
// Append semicolon to previous statement if needed
|
||||
if (argument is KtLambdaExpression) {
|
||||
val previousElement = KtPsiUtil.skipSiblingsBackwardByPredicate(expression) {
|
||||
it.node.elementType in KtTokens.WHITE_SPACE_OR_COMMENT_BIT_SET
|
||||
it!!.node.elementType in KtTokens.WHITE_SPACE_OR_COMMENT_BIT_SET
|
||||
}
|
||||
if (previousElement != null && previousElement is KtExpression) {
|
||||
previousElement.parent!!.addAfter(psiFactory.createSemicolon(), previousElement)
|
||||
|
||||
Reference in New Issue
Block a user