playtest-unity/playtest/Library/PackageCache/com.unity.visualscripting@1.../Runtime/VisualScripting.Flow/Dependencies/NCalc/UnaryExpression.cs

28 lines
624 B
C#
Raw Normal View History

2023-06-19 23:21:21 -04:00
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
}
}