Fix NON_EXHAUSTIVE_WHEN_STATEMENT warnings in project code
This commit is contained in:
committed by
teamcityserver
parent
a6edd852ff
commit
f3116cb64a
@@ -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
|
||||
|
||||
+1
@@ -87,6 +87,7 @@ class ResolvedAtomCompleter(
|
||||
is ResolvedCallAtom -> completeResolvedCall(resolvedAtom, emptyList())
|
||||
is ResolvedSubCallArgument -> completeSubCallArgument(resolvedAtom)
|
||||
is ResolvedExpressionAtom -> completeExpression(resolvedAtom)
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user