fix wrong attribute name in autogen state errors (#4000)

This commit is contained in:
deltanedas
2023-05-04 00:00:05 +00:00
committed by GitHub
parent 89b4062eb6
commit ebc12410d4

View File

@@ -45,7 +45,7 @@ namespace Robust.Shared.CompNetworkGenerator
{
if (prop.SetMethod == null || prop.SetMethod.DeclaredAccessibility != Accessibility.Public)
{
var msg = "Property is marked with [AutoNetworkField], but has no accessible setter method.";
var msg = "Property is marked with [AutoNetworkedField], but has no accessible setter method.";
context.ReportDiagnostic(
Diagnostic.Create(
new DiagnosticDescriptor(
@@ -61,7 +61,7 @@ namespace Robust.Shared.CompNetworkGenerator
if (prop.GetMethod == null || prop.GetMethod.DeclaredAccessibility != Accessibility.Public)
{
var msg = "Property is marked with [AutoNetworkField], but has no accessible getter method.";
var msg = "Property is marked with [AutoNetworkedField], but has no accessible getter method.";
context.ReportDiagnostic(
Diagnostic.Create(
new DiagnosticDescriptor(
@@ -83,7 +83,7 @@ namespace Robust.Shared.CompNetworkGenerator
if (fields.Count == 0)
{
var msg = "Component is marked with [AutoGenerateComponentState], but has no valid members marked with [AutoNetworkField].";
var msg = "Component is marked with [AutoGenerateComponentState], but has no valid members marked with [AutoNetworkedField].";
context.ReportDiagnostic(
Diagnostic.Create(
new DiagnosticDescriptor(