Editor/Wiring/Actions/ReturnAction.cs

A small AST node type used by the editor wiring system. It represents a return statement in a method body and holds an optional Expression for the returned value.

namespace Grains.RazorDesigner.Wiring;

// `return Value;` or bare `return;` (Value == null). Legal in MethodSymbol bodies.
public sealed record ReturnAction : Action
{
    public Expression Value { get; init; }
}