public void Visit(NullStatementNode statement) { if (_innermostWhileLabelIndex == null) { throw new Exception("There is no loop to continue or break out of"); } if (statement.Type == NullStatementType.Continue) { EmitComment("Continue"); Emit("br", "while_cond_" + _innermostWhileLabelIndex); } else if (statement.Type == NullStatementType.Break) { EmitComment("Break"); Emit("br", "while_end_" + _innermostWhileLabelIndex); } else { throw new Exception("Unknown null statement type " + statement.Type); } }
public void Visit(NullStatementNode statement) { if (_innermostWhileLabelIndex == null) throw new Exception("There is no loop to continue or break out of"); if (statement.Type == NullStatementType.Continue) { EmitComment("Continue"); Emit("goto", "while_cond_" + _innermostWhileLabelIndex); } else if (statement.Type == NullStatementType.Break) { EmitComment("Break"); Emit("goto", "while_end_" + _innermostWhileLabelIndex); } else { throw new Exception("Unknown null statement type " + statement.Type); } }
public void Visit(NullStatementNode statement) { }
public void Visit(NullStatementNode statement) { }