Editor/Wiring/Actions/CallAction.cs

A small immutable record type representing a call action in the editor wiring system. It stores a CalleeRef, a read-only list of argument Expressions, and a boolean indicating whether the call should be awaited.

using System.Collections.Generic;

namespace Grains.RazorDesigner.Wiring;

public sealed record CallAction : Action
{
    public CalleeRef Callee { get; init; }
    public IReadOnlyList<Expression> Args { get; init; } = System.Array.Empty<Expression>();
    public bool Await { get; init; }
}