コード例 #1
0
        public override ExpressionCode GenerateCode()
        {
            var stringCode = Condition.GenerateCode().Code;

            stringCode += " ? " + TrueExpression.GenerateCode().Code;
            stringCode += " : " + FalseExpression.GenerateCode().Code;
            return(new ExpressionCode {
                Code = stringCode, Type = TrueExpression.GenerateCode().Type
            });
        }