Code cleanup: get rid of unnecessary !! / as, fake warning comments and issues

This commit is contained in:
Mikhail Glukhikh
2015-12-14 12:21:03 +03:00
parent 4ffd60cf52
commit 233e8e58e8
12 changed files with 14 additions and 7 deletions
@@ -103,6 +103,7 @@ public class WriteValueInstruction(
public val rValue: PseudoValue
) : AccessValueInstruction(assignment, lexicalScope, target, receiverValues) {
override val inputValues: List<PseudoValue>
// as is necessary: see KT-10384
get() = (receiverValues.keySet() as Collection<PseudoValue>) + rValue
override fun accept(visitor: InstructionVisitor) {
@@ -60,6 +60,8 @@ public class CallInstruction private constructor(
override val receiverValues: Map<PseudoValue, ReceiverValue>,
public val arguments: Map<PseudoValue, ValueParameterDescriptor>
) : OperationInstruction(element, lexicalScope, (receiverValues.keySet() as Collection<PseudoValue>) + arguments.keySet()), InstructionWithReceivers {
// as is necessary above: see KT-10384
public constructor (
element: KtElement,
lexicalScope: LexicalScope,