diff --git a/GFramework.SourceGenerators.Tests/Config/snapshots/SchemaConfigGenerator/MonsterConfigBindings.g.txt b/GFramework.SourceGenerators.Tests/Config/snapshots/SchemaConfigGenerator/MonsterConfigBindings.g.txt index 9893f455..a2954ce7 100644 --- a/GFramework.SourceGenerators.Tests/Config/snapshots/SchemaConfigGenerator/MonsterConfigBindings.g.txt +++ b/GFramework.SourceGenerators.Tests/Config/snapshots/SchemaConfigGenerator/MonsterConfigBindings.g.txt @@ -5,7 +5,7 @@ namespace GFramework.Game.Config.Generated; /// /// Auto-generated registration and lookup helpers for schema file 'monster.schema.json'. -/// The helper centralizes table naming, config directory, schema path, and strong-typed registry access so consumer projects do not need to duplicate the same conventions. +/// The helper centralizes table naming, config directory, schema path, and strongly-typed registry access so consumer projects do not need to duplicate the same conventions. /// public static class MonsterConfigBindings { @@ -51,7 +51,7 @@ public static class MonsterConfigBindings /// Gets the generated config table wrapper from the registry. /// /// The source config registry. - /// The generated strong-typed table wrapper. + /// The generated strongly-typed table wrapper. /// When is null. public static MonsterTable GetMonsterTable(this global::GFramework.Game.Abstractions.Config.IConfigRegistry registry) { @@ -67,7 +67,7 @@ public static class MonsterConfigBindings /// Tries to get the generated config table wrapper from the registry. /// /// The source config registry. - /// The generated strong-typed table wrapper when lookup succeeds; otherwise null. + /// The generated strongly-typed table wrapper when lookup succeeds; otherwise null. /// True when the generated table is registered and type-compatible; otherwise false. /// When is null. public static bool TryGetMonsterTable(this global::GFramework.Game.Abstractions.Config.IConfigRegistry registry, out MonsterTable? table) diff --git a/GFramework.SourceGenerators/Config/SchemaConfigGenerator.cs b/GFramework.SourceGenerators/Config/SchemaConfigGenerator.cs index 6428f624..29d52fdb 100644 --- a/GFramework.SourceGenerators/Config/SchemaConfigGenerator.cs +++ b/GFramework.SourceGenerators/Config/SchemaConfigGenerator.cs @@ -1,7 +1,3 @@ -using System.Globalization; -using System.IO; -using System.Text; -using System.Text.Json; using GFramework.SourceGenerators.Diagnostics; namespace GFramework.SourceGenerators.Config; @@ -640,7 +636,7 @@ public sealed class SchemaConfigGenerator : IIncrementalGenerator builder.AppendLine( $"/// Auto-generated registration and lookup helpers for schema file '{schema.FileName}'."); builder.AppendLine( - "/// The helper centralizes table naming, config directory, schema path, and strong-typed registry access so consumer projects do not need to duplicate the same conventions."); + "/// The helper centralizes table naming, config directory, schema path, and strongly-typed registry access so consumer projects do not need to duplicate the same conventions."); builder.AppendLine("/// "); builder.AppendLine($"public static class {bindingsClassName}"); builder.AppendLine("{"); @@ -694,7 +690,7 @@ public sealed class SchemaConfigGenerator : IIncrementalGenerator builder.AppendLine(" /// Gets the generated config table wrapper from the registry."); builder.AppendLine(" /// "); builder.AppendLine(" /// The source config registry."); - builder.AppendLine(" /// The generated strong-typed table wrapper."); + builder.AppendLine(" /// The generated strongly-typed table wrapper."); builder.AppendLine( " /// When is null."); builder.AppendLine( @@ -714,7 +710,7 @@ public sealed class SchemaConfigGenerator : IIncrementalGenerator builder.AppendLine(" /// "); builder.AppendLine(" /// The source config registry."); builder.AppendLine( - " /// The generated strong-typed table wrapper when lookup succeeds; otherwise null."); + " /// The generated strongly-typed table wrapper when lookup succeeds; otherwise null."); builder.AppendLine( " /// True when the generated table is registered and type-compatible; otherwise false."); builder.AppendLine(