You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.Append("return value is null ? null : CreateAs").Append(property.Name).Append("(value").AppendIf(property.TypeSymbol.IsValueType,".Value").AppendLine(");")
// var declaringSyntaxReferences = self?.DeclaringSyntaxReferences;
49
-
50
-
// if (self is null || declaringSyntaxReferences is null or { Length: 0 })
51
-
// return null;
52
-
53
-
// List<ConstructorDeclarationSyntax>? result = null;
54
-
55
-
// foreach (var syntax in declaringSyntaxReferences)
56
-
// {
57
-
// if (syntax.GetSyntax() is TypeDeclarationSyntax classDeclaration && string.Equals(classDeclaration.GetClassFullName(), self.ToString(), System.StringComparison.Ordinal))
58
-
// {
59
-
// var constructors = classDeclaration.Members.OfType<ConstructorDeclarationSyntax>();
60
-
61
-
// result ??= [];
62
-
// result.AddRange(constructors);
63
-
// }
64
-
// }
65
-
// return result;
66
-
//}
67
-
68
12
/// <summary>
69
13
/// Gets the namespace of the specified type declaration syntax.
Copy file name to clipboardExpand all lines: tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldGenerateAllMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,12 @@ public void Switch(
143
143
/// <returns>
144
144
/// <see cref="Authorisation1Choice"/> instance representing the code.
Copy file name to clipboardExpand all lines: tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldNotGenerateImplicitMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,12 @@ public void Switch(
143
143
/// <returns>
144
144
/// <see cref="Authorisation1Choice"/> instance representing the code.
0 commit comments