示例#1
0
        protected internal override ExpressionSlim VisitDefault(DefaultExpressionSlim node)
        {
            Append("Default(");
            Append(node.Type);
            Append(')');

            return(node);
        }
        /// <summary>
        /// Visits a default expression slim tree node, produces a default expression.
        /// </summary>
        /// <param name="node">Node to visit.</param>
        /// <returns>The default expression represented by the expression slim node.</returns>
        protected override Expression MakeDefault(DefaultExpressionSlim node)
        {
            var type = MakeType(node.Type);

            return(_factory.Default(type));
        }
 /// <summary>
 /// Visits a default expression tree node.
 /// </summary>
 /// <param name="node">Node to visit.</param>
 /// <returns>Result of visiting the node.</returns>
 protected internal virtual ExpressionSlim VisitDefault(DefaultExpressionSlim node)
 {
     return(node);
 }