improve: rename project
This commit is contained in:
13
.idea/.idea.Hangman.SDK.Generators/.idea/.gitignore
generated
vendored
13
.idea/.idea.Hangman.SDK.Generators/.idea/.gitignore
generated
vendored
@@ -1,13 +0,0 @@
|
|||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
# Rider ignored files
|
|
||||||
/contentModel.xml
|
|
||||||
/modules.xml
|
|
||||||
/.idea.Hangman.SDK.Generators.iml
|
|
||||||
/projectSettingsUpdater.xml
|
|
||||||
# Editor-based HTTP Client requests
|
|
||||||
/httpRequests/
|
|
||||||
# Datasource local storage ignored files
|
|
||||||
/dataSources/
|
|
||||||
/dataSources.local.xml
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
|
||||||
</project>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="UserContentModel">
|
|
||||||
<attachedFolders />
|
|
||||||
<explicitIncludes />
|
|
||||||
<explicitExcludes />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
6
.idea/.idea.Hangman.SDK.Generators/.idea/vcs.xml
generated
6
.idea/.idea.Hangman.SDK.Generators/.idea/vcs.xml
generated
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
@@ -1,11 +1,9 @@
|
|||||||
namespace Hangman.SDK.Generators;
|
namespace Polonium.Generators;
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.CodeAnalysis;
|
using Microsoft.CodeAnalysis;
|
||||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||||
|
|
||||||
|
|
||||||
public struct AssetInfo
|
public struct AssetInfo
|
||||||
{
|
{
|
||||||
public INamedTypeSymbol Symbol;
|
public INamedTypeSymbol Symbol;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.CodeAnalysis;
|
using Microsoft.CodeAnalysis;
|
||||||
|
|
||||||
namespace Hangman.SDK.Generators;
|
namespace Polonium.Generators;
|
||||||
|
|
||||||
public abstract class AssetProcessGenerator : ISourceGenerator
|
public abstract class AssetProcessGenerator : ISourceGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.CodeAnalysis;
|
using Microsoft.CodeAnalysis;
|
||||||
|
|
||||||
namespace Hangman.SDK.Generators;
|
namespace Polonium.Generators;
|
||||||
[Generator]
|
[Generator]
|
||||||
public class AssetRegisterGenerator : AssetProcessGenerator
|
public class AssetRegisterGenerator : AssetProcessGenerator
|
||||||
{
|
{
|
||||||
@@ -15,11 +15,10 @@ public class AssetRegisterGenerator : AssetProcessGenerator
|
|||||||
return;
|
return;
|
||||||
Compilation compilation = context.Compilation;
|
Compilation compilation = context.Compilation;
|
||||||
StringBuilder sb = new();
|
StringBuilder sb = new();
|
||||||
|
|
||||||
sb
|
sb
|
||||||
.AppendLine("using System;")
|
.AppendLine("using System;")
|
||||||
.AppendLine("using Godot;")
|
.AppendLine("using Godot;")
|
||||||
.AppendLine("using Hangman.SDK.Attributes;")
|
.AppendLine("using Polonium.Attributes;")
|
||||||
.AppendLine("[AutoRegister]")
|
.AppendLine("[AutoRegister]")
|
||||||
.AppendLine("public static class AssetRegister")
|
.AppendLine("public static class AssetRegister")
|
||||||
.AppendLine("{")
|
.AppendLine("{")
|
||||||
@@ -45,7 +44,6 @@ public class AssetRegisterGenerator : AssetProcessGenerator
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sb
|
sb
|
||||||
.AppendLine(" }")
|
.AppendLine(" }")
|
||||||
.AppendLine("}");
|
.AppendLine("}");
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|||||||
using Microsoft.CodeAnalysis;
|
using Microsoft.CodeAnalysis;
|
||||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||||
|
|
||||||
namespace Hangman.SDK.Generators;
|
namespace Polonium.Generators;
|
||||||
|
|
||||||
public class ClassSyntaxReceiver : ISyntaxReceiver
|
public class ClassSyntaxReceiver : ISyntaxReceiver
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.CodeAnalysis;
|
using Microsoft.CodeAnalysis;
|
||||||
|
|
||||||
namespace Hangman.SDK.Generators;
|
namespace Polonium.Generators;
|
||||||
[Generator]
|
[Generator]
|
||||||
public class GlobalRegistryGenerator : ISourceGenerator
|
public class GlobalRegistryGenerator : ISourceGenerator
|
||||||
{
|
{
|
||||||
@@ -18,8 +18,8 @@ public class GlobalRegistryGenerator : ISourceGenerator
|
|||||||
.AppendLine("using System.Collections.Generic;")
|
.AppendLine("using System.Collections.Generic;")
|
||||||
.AppendLine("using System.Linq;")
|
.AppendLine("using System.Linq;")
|
||||||
.AppendLine("using System.Reflection;")
|
.AppendLine("using System.Reflection;")
|
||||||
.AppendLine("using Hangman.SDK.Attributes;")
|
.AppendLine("using Polonium.Attributes;")
|
||||||
.AppendLine("using Hangman.SDK;")
|
.AppendLine("using Polonium;")
|
||||||
.AppendLine("public static partial class GlobalRegistry")
|
.AppendLine("public static partial class GlobalRegistry")
|
||||||
.AppendLine("{")
|
.AppendLine("{")
|
||||||
.AppendLine(" public static void Register()")
|
.AppendLine(" public static void Register()")
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
|
||||||
<IsPackable>true</IsPackable>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
<LangVersion>latest</LangVersion>
|
|
||||||
|
|
||||||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
|
|
||||||
<IsRoslynComponent>true</IsRoslynComponent>
|
|
||||||
|
|
||||||
<RootNamespace>Hangman.SDK.Generators</RootNamespace>
|
|
||||||
<AssemblyName>Hangman.SDK.Generators</AssemblyName>
|
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
||||||
<Version>0.0.1</Version>
|
|
||||||
<Authors>Hangman</Authors>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.0"/>
|
|
||||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.3.0"/>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
Reference in New Issue
Block a user