Editor/Wiring/Expressions/UnaryOpExpression.cs

A small AST node type used by the editor wiring system. It represents a unary operation, storing the operator kind and the operand expression.

namespace Grains.RazorDesigner.Wiring;

public sealed record UnaryOpExpression : Expression
{
    public UnaryOp Op { get; init; }
    public Expression Operand { get; init; }
}