コード例 #1
0
 public SConditionalStatement(SExpression condition, SStatement trueStatement, SStatement nextStatement)
     : base(condition != null ? "if: " + condition.CodeString : "", nextStatement)
 {
     Condition       = condition;
     IfTrueStatement = trueStatement;
     IfTrueStatement.SetNextStatement(null);
 }
コード例 #2
0
 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();
 }