4 using System.Collections.Generic;
6 namespace SiliconStudio.Shaders.Ast
27 this.Operator = @
operator;
28 this.Expression = expression;
58 var isPostFix = Operator == UnaryOperator.PostIncrement || Operator == UnaryOperator.PostDecrement;
59 var left = isPostFix ? (object)
Expression : Operator.ConvertToString();
60 var right = isPostFix ? Operator.ConvertToString() : (
object)
Expression;
61 return string.Format(
"{0}{1}", left, right);
UnaryOperator
Unary operator used in all binary expressions (except assignment expression).
UnaryExpression()
Initializes a new instance of the UnaryExpression class.
override string ToString()
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
UnaryExpression(UnaryOperator @operator, Expression expression)
Initializes a new instance of the UnaryExpression class.