Editor/Wiring/Symbols/MethodSymbol.cs

A simple record that represents a method symbol for the Razor designer wiring. It stores visibility, return type, parameters and a list of actions representing the method body.

using System.Collections.Generic;

namespace Grains.RazorDesigner.Wiring;

public sealed record MethodSymbol : Symbol
{
    public SymbolVisibility Visibility { get; init; } = SymbolVisibility.Private;
    public string ReturnType { get; init; } = "void";
    public IReadOnlyList<MethodParameter> Parameters { get; init; } = System.Array.Empty<MethodParameter>();
    public IReadOnlyList<Action> Body { get; init; } = System.Array.Empty<Action>();
}