Example #1
0
        private static AssignUnaryCSharpExpression MakeUnaryAssignCore(CSharpExpressionType unaryType, Expression operand, MethodInfo method)
        {
            RequiresCanRead(operand, nameof(operand));
            Helpers.RequiresCanWrite(operand, nameof(operand));

            return(AssignUnaryCSharpExpression.Make(unaryType, operand, method));
        }
Example #2
0
        protected internal override Expression VisitUnaryAssign(AssignUnaryCSharpExpression node)
        {
            var args = new List <object>();

            if (node.Method != null)
            {
                args.Add(new XAttribute(nameof(node.Method), node.Method));
            }

            args.Add(new XElement(nameof(node.Operand), Visit(node.Operand)));

            return(Push(node, args));
        }
 public AssignUnaryCSharpExpressionProxy(AssignUnaryCSharpExpression node)
 {
     _node = node;
 }
 public AssignUnaryCSharpExpressionProxy(AssignUnaryCSharpExpression node)
 {
     _node = node;
 }
Example #5
0
 protected internal virtual Expression VisitUnaryAssign(AssignUnaryCSharpExpression node)
 {
     return(node.Update(Visit(node.Operand)));
 }
 protected internal virtual Expression VisitUnaryAssign(AssignUnaryCSharpExpression node)
 {
     return node.Update(Visit(node.Operand));
 }