예제 #1
0
        protected internal override ExpressionSlim VisitMember(MemberExpressionSlim node)
        {
            Append("MemberAccess(");
            Append(node.Member);
            VisitNonNull(", ", node.Expression);
            Append(')');

            return(node);
        }
        /// <summary>
        /// Visits a member expression slim tree node, produces a member expression.
        /// </summary>
        /// <param name="node">Node to visit.</param>
        /// <param name="expression">Operand expression.</param>
        /// <returns>The member expression represented by the expression slim node.</returns>
        protected override Expression MakeMember(MemberExpressionSlim node, Expression expression)
        {
            var member = MakeMember(node.Member);

            return(_factory.MakeMemberAccess(expression, member));
        }
예제 #3
0
 /// <summary>
 /// Visits a member lookup expression tree node.
 /// </summary>
 /// <param name="node">Node to visit.</param>
 /// <returns>Result of visiting the node.</returns>
 protected internal virtual ExpressionSlim VisitMember(MemberExpressionSlim node)
 {
     return(node.Update(Visit(node.Expression)));
 }