using System.Collections.Generic;
using System.Linq;

namespace Robust.Shared.Serialization.Markdown.Validation
{
    public sealed class ValidatedValueNode : ValidationNode
    {
        public ValidatedValueNode(DataNode dataNode)
        {
            DataNode = dataNode;
        }

        public DataNode DataNode { get; }

        public override bool Valid => true;

        public override IEnumerable<ErrorNode> GetErrors() => Enumerable.Empty<ErrorNode>();

        public override string? ToString()
        {
            return DataNode.ToString();
        }
    }
}
