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
{IsRecord:true,TypeKind:TypeKind.Struct or TypeKind.Structure,IsReadOnly:true}=>"readonly partial record struct",
68
+
{IsRecord:false,TypeKind:TypeKind.Struct or TypeKind.Structure,IsReadOnly:true}=>"readonly partial struct",
69
+
{IsRecord:false,TypeKind:TypeKind.Struct or TypeKind.Structure,IsReadOnly:false}=>"partial struct",
70
70
_ =>thrownewNotImplementedException("Could not determine whether the type is a struct, class or record.")
71
71
};
72
+
73
+
if(type.DeclaredAccessibilityis not Accessibility.Public)
74
+
thrownewNotImplementedException(
75
+
$"Generate accessibility of '{type.DeclaredAccessibility}' on '{type.ToDisplayParts()}' only '{type.DeclaredAccessibility==Accessibility.Public}' is supported."
0 commit comments