public SConditionalStatement(SExpression condition, SStatement trueStatement, SStatement nextStatement) : base(condition != null ? "if: " + condition.CodeString : "", nextStatement) { Condition = condition; IfTrueStatement = trueStatement; IfTrueStatement.SetNextStatement(null); }
public SSwitchStatement(SExpression condition, SStatement switchStatement, SLabeledStatement[] jumpTargets, SStatement nextStatement) : base(condition != null ? "switch: " + condition.CodeString : "", new SLabeledStatement("switch break target", null, nextStatement) { Visible = false }) { Condition = condition; SwitchStatement = switchStatement; SwitchStatement.SetNextStatement(null); this.jumpTargets = (SLabeledStatement[])jumpTargets.Clone(); }