mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 10:07:15 +02:00
* Add Type tracking to FieldNotFoundErrorNode * Suggested changes, plus xmldoc and primary constructor conversion.
13 lines
411 B
C#
13 lines
411 B
C#
using System;
|
|
using Robust.Shared.Serialization.Markdown.Value;
|
|
|
|
namespace Robust.Shared.Serialization.Markdown.Validation;
|
|
|
|
public sealed class FieldNotFoundErrorNode(ValueDataNode key, Type type) : ErrorNode(key, $"Field \"{key.Value}\" not found in \"{type}\".", false)
|
|
{
|
|
/// <summary>
|
|
/// The Type in which the field was not found.
|
|
/// </summary>
|
|
public Type FieldType { get; } = type;
|
|
}
|