Editor/Validation/IValidator.cs

Interface for a validator used by the editor. It declares a single method Validate that takes a root IReadOnlyNode and returns a read-only list of ValidationDiagnostic.

using System.Collections.Generic;
using Grains.RazorDesigner.Projection;

namespace Grains.RazorDesigner.Validation;

public interface IValidator
{
	System.Collections.Generic.IReadOnlyList<ValidationDiagnostic> Validate( IReadOnlyNode root );
}