Fix NON_EXHAUSTIVE_WHEN_STATEMENT warnings in project code

This commit is contained in:
Dmitriy Novozhilov
2021-07-13 15:48:59 +03:00
committed by teamcityserver
parent a6edd852ff
commit f3116cb64a
35 changed files with 75 additions and 27 deletions
@@ -194,7 +194,7 @@ fun getExpectedTypePredicate(
}
}
is MagicInstruction -> @Suppress("NON_EXHAUSTIVE_WHEN") when (it.kind) {
is MagicInstruction -> when (it.kind) {
AND, OR ->
addSubtypesOf(builtIns.booleanType)
@@ -219,6 +219,7 @@ fun getExpectedTypePredicate(
val typePredicate = getTypePredicateForUnresolvedCallArgument(it.element, it.inputValues.indexOf(value))
typePredicates.add(typePredicate)
}
else -> {}
}
}
}
@@ -297,4 +298,4 @@ fun Pseudocode.getPseudocodeByElement(element: KtElement): Pseudocode? {
}
val Label.isJumpToError: Boolean
get() = resolveToInstruction() == pseudocode.errorInstruction
get() = resolveToInstruction() == pseudocode.errorInstruction
@@ -87,6 +87,7 @@ class ResolvedAtomCompleter(
is ResolvedCallAtom -> completeResolvedCall(resolvedAtom, emptyList())
is ResolvedSubCallArgument -> completeSubCallArgument(resolvedAtom)
is ResolvedExpressionAtom -> completeExpression(resolvedAtom)
else -> {}
}
}