UnityGame/Library/PackageCache/com.unity.visualscripting/Runtime/VisualScripting.Flow/Dependencies/NCalc/UnaryExpression.cs
2024-10-27 10:53:47 +03:00

28 lines
624 B
C#

namespace Unity.VisualScripting.Dependencies.NCalc
{
public class UnaryExpression : LogicalExpression
{
public UnaryExpression(UnaryExpressionType type, LogicalExpression expression)
{
Type = type;
Expression = expression;
}
public LogicalExpression Expression { get; set; }
public UnaryExpressionType Type { get; set; }
public override void Accept(LogicalExpressionVisitor visitor)
{
visitor.Visit(this);
}
}
public enum UnaryExpressionType
{
Not,
Negate,
BitwiseNot
}
}