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
Feature/563 source generator should respect the accessibility of the partial struct that it is assigned to (#581)
* Added the ability to override the accessibility.
* Updated the source generator to respect the accessibility of the type.
* Updated README and version number
Note that you can still generate code that will not compile if you incorrectly mix-and-match `public` and `internal`. It is your responsibility to ensure that your types have compatible accessibility.
/// <param name="useImplicitOperatorString">If true, then the string conversion will be implicit.</param>
596
622
/// <param name="lineEndSequence">The line-end sequence. Defaults to <c>\r\n</c>.</param>
597
623
/// <param name="addExplicitUsings">If true, then the generated files will include using statements for the standard implicit usings. You should use this when your project does not use implicit usings.</param>
624
+
/// <param name="defaultAccessibility">Defines the accessibility of the generated types. Defaults to <see cref="GeneratedTypeAccessibility.Public"/>.</param>
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/CodeFileBuilders/ArrayPartial.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,8 @@ public CodeGenerator EmitFile(CodeGenerator generator, TypeDeclaration typeDecla
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/CodeFileBuilders/BooleanPartial.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,8 @@ public CodeGenerator EmitFile(CodeGenerator generator, TypeDeclaration typeDecla
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/CodeFileBuilders/CorePartial.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,8 @@ public CodeGenerator EmitFile(CodeGenerator generator, TypeDeclaration typeDecla
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/CodeFileBuilders/NumberPartial.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,8 @@ public CodeGenerator EmitFile(CodeGenerator generator, TypeDeclaration typeDecla
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/CodeFileBuilders/ObjectPartial.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,8 @@ public CodeGenerator EmitFile(CodeGenerator generator, TypeDeclaration typeDecla
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/CodeFileBuilders/StringPartial.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,8 @@ public CodeGenerator EmitFile(CodeGenerator generator, TypeDeclaration typeDecla
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/CodeFileBuilders/ValidatePartial.cs
+5-3
Original file line number
Diff line number
Diff line change
@@ -42,12 +42,14 @@ public CodeGenerator EmitFile(CodeGenerator generator, TypeDeclaration typeDecla
Copy file name to clipboardexpand all lines: Solutions/Corvus.Json.CodeGeneration.CSharp/Corvus.Json.CodeGeneration/CSharp/TypeDeclarationExtensions.cs
+46
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ public static class TypeDeclarationExtensions
0 commit comments