use of com.intellij.codeInspection.dataFlow.DfaInstructionState in project intellij-community by JetBrains.
the class SwapInstruction method accept.
@Override
public DfaInstructionState[] accept(DataFlowRunner runner, DfaMemoryState stateBefore, InstructionVisitor visitor) {
final DfaValue a = stateBefore.pop();
final DfaValue b = stateBefore.pop();
stateBefore.push(a);
stateBefore.push(b);
Instruction nextInstruction = runner.getInstruction(getIndex() + 1);
return new DfaInstructionState[] { new DfaInstructionState(nextInstruction, stateBefore) };
}
Aggregations