mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
25 lines
580 B
C#
25 lines
580 B
C#
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();
|
|
}
|
|
}
|
|
}
|