Немного рефакторинга
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
// <auto-generated/>
|
|
||||||
|
|
||||||
namespace RPCTest.Implementation
|
|
||||||
{
|
|
||||||
public sealed class GenerativeParametersTestClass
|
|
||||||
{
|
|
||||||
public int Increment(<!L param>)
|
|
||||||
{
|
|
||||||
return i + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user