Example #1
0
        protected internal override MemberListBindingSlim VisitMemberListBinding(MemberListBindingSlim node)
        {
            Append("ListBinding(");
            Append(node.Member);
            Append(", ");
            Visit(", ", node.Initializers, VisitElementInit);
            Append(')');

            return(node);
        }
        /// <summary>
        /// Visits a member list binding slim tree node, produces a member list binding.
        /// </summary>
        /// <param name="node">Node to visit.</param>
        /// <param name="initializers">Element initializers.</param>
        /// <returns>The member list binding represented by the member binding slim node.</returns>
        protected override MemberListBinding MakeMemberListBinding(MemberListBindingSlim node, ReadOnlyCollection <ElementInit> initializers)
        {
            var member = MakeMember(node.Member);

            return(_factory.ListBind(member, initializers));
        }
 /// <summary>
 /// Visits a member list binding node.
 /// </summary>
 /// <param name="node">Node to visit.</param>
 /// <returns>Result of visiting the node.</returns>
 protected internal virtual MemberListBindingSlim VisitMemberListBinding(MemberListBindingSlim node)
 {
     return(node.Update(Visit(node.Initializers, VisitElementInit)));
 }