Немного рефакторинга

This commit is contained in:
2025-03-31 10:08:20 +03:00
parent b675553b6e
commit 62dde889d8
3 changed files with 6 additions and 17 deletions
-12
View File
@@ -1,12 +0,0 @@
// <auto-generated/>
namespace RPCTest.Implementation
{
public sealed class GenerativeParametersTestClass
{
public int Increment(<!L param>)
{
return i + 1;
}
}
}
-1
View File
@@ -37,7 +37,6 @@
<EmbeddedResource Include="PartialInterface.cstmpl"/> <EmbeddedResource Include="PartialInterface.cstmpl"/>
<EmbeddedResource Include="RemoteEndpoint.cstmpl"/> <EmbeddedResource Include="RemoteEndpoint.cstmpl"/>
<EmbeddedResource Include="RemoteTypeBinder.cstmpl"/> <EmbeddedResource Include="RemoteTypeBinder.cstmpl"/>
<EmbeddedResource Include="TestClass.cstmpl" />
<None Remove="MethodRepo.cstmpl"/> <None Remove="MethodRepo.cstmpl"/>
<EmbeddedResource Include="MethodRepo.cstmpl"/> <EmbeddedResource Include="MethodRepo.cstmpl"/>
</ItemGroup> </ItemGroup>
+3 -1
View File
@@ -612,9 +612,11 @@ namespace mROA.Codegen
{ {
var parts = type.ToDisplayParts(); var parts = type.ToDisplayParts();
if (parts.Any(i => i.Kind == SymbolDisplayPartKind.Keyword)) return parts.ToUnityString(); if (parts.Any(i => i.Kind == SymbolDisplayPartKind.Keyword))
return parts.ToUnityString();
return type.ToDisplayString(); return type.ToDisplayString();
} }
public static string ToUnityString(this IParameterSymbol parameter) public static string ToUnityString(this IParameterSymbol parameter)