Fix default valeu for reference types and non-reference types (#34)

* .

* ok

* sw

* .

* .
This commit is contained in:
Stef Heyenrath
2022-05-08 18:19:10 +02:00
committed by GitHub
parent b4c490aef9
commit 87b2b6c6c3
5 changed files with 67 additions and 15 deletions
@@ -115,9 +115,6 @@ namespace {ns}
var whereStatement = GetWhereStatementFromMethod(method);
//public static string GetWhereStatement(this IMethodSymbol method) =>
// !method.IsGenericMethod ? string.Empty : string.Join("", method.TypeParameters.Select(tp => tp.GetWhereConstraints()));
str.AppendLine($" {GetReplacedType(method.ReturnType, out _)} {method.GetMethodNameWithOptionalTypeParameters()}({string.Join(", ", methodParameters)}){whereStatement};");
str.AppendLine();
}