Exemple #1
0
 protected internal override MAst Transform()
 {
     return(_expecting.IsExpectingType
                ? _expecting.Type == typeof(bool)
                      ? MAst.Constant(false, typeof(bool))
                      : MAst.Constant(null, _expecting.Type)
                : MAst.Constant(null));
 }
        protected internal override MAst Transform()
        {
            ConstantExpression constant = MAst.Constant(_value, typeof(string));

            return(Args.Count() == 0
                       ? (MAst)constant
                       : MAst.Invoke(_stringFormatExpression,
                                     constant,
                                     MAst.NewArrayInit(typeof(object), from arg in Args select arg.Transform().Convert <object>())));
        }