Fixed multi-dimension argument / return type (#55)

* Fixed multi dimension array arguments

* .

* .

* .

* ,
This commit is contained in:
Stef Heyenrath
2023-02-21 19:10:03 +01:00
committed by GitHub
parent 196db037ab
commit 65d1d801ce
8 changed files with 36 additions and 8 deletions
@@ -9,7 +9,7 @@ internal static class MethodParameterBuilder
public static string Build(IParameterSymbol parameterSymbol, string? type)
{
var stringBuilder = new StringBuilder();
if (type is { })
if (type is not null)
{
stringBuilder.Append(parameterSymbol.GetAttributesPrefix()); // "" or [NotNullWhen(true)]
stringBuilder.Append(parameterSymbol.GetParamsPrefix()); // "" or "params "