mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
* Add analyzer and fixer for redundant DataField tag arguments * Share Tag autogeneration logic
13 lines
291 B
C#
13 lines
291 B
C#
using System;
|
|
|
|
namespace Robust.Shared.Serialization.Manager.Definition;
|
|
|
|
public class DataDefinitionUtility
|
|
{
|
|
public static string AutoGenerateTag(string name)
|
|
{
|
|
var span = name.AsSpan();
|
|
return $"{char.ToLowerInvariant(span[0])}{span.Slice(1).ToString()}";
|
|
}
|
|
}
|