refactor!: moving generator attributes into Nitride.Generators namespace

This commit is contained in:
D. Moonfire 2023-01-15 14:08:58 -06:00
parent 0a36d70fb0
commit a5694d0cee
31 changed files with 61 additions and 17 deletions

View file

@ -10,6 +10,7 @@ using Ical.Net.Serialization;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Generators;
using MfGames.Nitride.Temporal; using MfGames.Nitride.Temporal;
using NodaTime; using NodaTime;

View file

@ -7,6 +7,7 @@ using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Feeds.Structure; using MfGames.Nitride.Feeds.Structure;
using MfGames.Nitride.Generators;
using NodaTime; using NodaTime;

View file

@ -1,5 +1,7 @@
using System.Xml.Linq; using System.Xml.Linq;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Feeds.Structure; namespace MfGames.Nitride.Feeds.Structure;
/// <summary> /// <summary>

View file

@ -1,6 +1,8 @@
using System; using System;
using System.Xml.Linq; using System.Xml.Linq;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Feeds.Structure; namespace MfGames.Nitride.Feeds.Structure;
/// <summary> /// <summary>

View file

@ -2,6 +2,8 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Xml.Linq; using System.Xml.Linq;
using MfGames.Nitride.Generators;
using NodaTime; using NodaTime;
using static MfGames.Nitride.Feeds.Structure.XmlConstants; using static MfGames.Nitride.Feeds.Structure.XmlConstants;

View file

@ -7,6 +7,7 @@ using HandlebarsDotNet;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Handlebars; namespace MfGames.Nitride.Handlebars;

View file

@ -5,6 +5,7 @@ using System.Linq;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Handlebars; namespace MfGames.Nitride.Handlebars;

View file

@ -7,6 +7,7 @@ using HandlebarsDotNet;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Handlebars; namespace MfGames.Nitride.Handlebars;

View file

@ -9,6 +9,7 @@ using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -8,6 +8,7 @@ using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Generators;
using Serilog; using Serilog;

View file

@ -4,6 +4,7 @@ using System.Collections.Generic;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using Serilog; using Serilog;

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -4,6 +4,7 @@ using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Entities; using MfGames.Nitride.Entities;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -5,6 +5,7 @@ using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Entities; using MfGames.Nitride.Entities;
using MfGames.Nitride.Generators;
using Serilog; using Serilog;

View file

@ -4,6 +4,7 @@ using System.Collections.Generic;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -4,6 +4,7 @@ using System.Collections.Generic;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -7,6 +7,7 @@ using Markdig;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Markdown; namespace MfGames.Nitride.Markdown;

View file

@ -5,6 +5,7 @@ using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Contents; using MfGames.Nitride.Contents;
using MfGames.Nitride.Generators;
using Zio; using Zio;

View file

@ -5,6 +5,7 @@ using System.Linq;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using NodaTime; using NodaTime;

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using NodaTime; using NodaTime;

View file

@ -1,6 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using NodaTime; using NodaTime;

View file

@ -1,5 +1,7 @@
using System; using System;
using MfGames.Nitride.Generators;
using NodaTime; using NodaTime;
namespace MfGames.Nitride.Temporal; namespace MfGames.Nitride.Temporal;

View file

@ -5,6 +5,7 @@ using System.Text.RegularExpressions;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using NodaTime; using NodaTime;

View file

@ -5,6 +5,7 @@ using System.Linq;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
using Serilog; using Serilog;

View file

@ -7,6 +7,7 @@ using System.Linq;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Entities; namespace MfGames.Nitride.Entities;

View file

@ -5,6 +5,7 @@ using System.Linq;
using FluentValidation; using FluentValidation;
using MfGames.Gallium; using MfGames.Gallium;
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Entities; namespace MfGames.Nitride.Entities;

View file

@ -0,0 +1,12 @@
using System;
namespace MfGames.Nitride.Generators;
/// <summary>
/// A marker attribute that indicates that the source generator should
/// automatically create the plumbing for an instance-based flag component.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class SingletonComponentAttribute : Attribute
{
}

View file

@ -1,6 +1,6 @@
using System; using System;
namespace MfGames.Nitride; namespace MfGames.Nitride.Generators;
/// <summary> /// <summary>
/// A marker attribute that indicates that the source generator should /// A marker attribute that indicates that the source generator should

View file

@ -15,22 +15,22 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Autofac" Version="6.4.0"/> <PackageReference Include="Autofac" Version="6.4.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="8.0.0"/> <PackageReference Include="Autofac.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="FluentValidation" Version="11.2.1"/> <PackageReference Include="FluentValidation" Version="11.2.1" />
<PackageReference Include="MfGames.Gallium" Version="0.3.0"/> <PackageReference Include="MfGames.Gallium" Version="0.3.0" />
<PackageReference Include="Humanizer.Core" Version="2.14.1"/> <PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="MfGames.ToolBuilder" Version="1.0.0"/> <PackageReference Include="MfGames.ToolBuilder" Version="1.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1"/> <PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0"/> <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" />
<PackageReference Include="Serilog" Version="2.11.0"/> <PackageReference Include="Serilog" Version="2.11.0" />
<PackageReference Include="Serilog.Extensions.Autofac.DependencyInjection" Version="5.0.0"/> <PackageReference Include="Serilog.Extensions.Autofac.DependencyInjection" Version="5.0.0" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1"/> <PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0"/> <PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="SerilogAnalyzer" Version="0.15.0"/> <PackageReference Include="SerilogAnalyzer" Version="0.15.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1"/> <PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
<PackageReference Include="System.Linq.Async" Version="6.0.1"/> <PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="Zio" Version="0.15.0"/> <PackageReference Include="Zio" Version="0.15.0" />
</ItemGroup> </ItemGroup>
<!-- Include the source generator --> <!-- Include the source generator -->