Skip to content

Commit 311a463

Browse files
BulkjeJEB
andauthored
Always generate netstandard compatibility (#141)
* change modifier from public to internal, always generate netstandard compatibility * Revert removal of NetstandardCompatibility if statement * whitespace --------- Co-authored-by: JEB <[email protected]>
1 parent 36061b5 commit 311a463

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/TestApp/TestStandardLibrary/Generated/GraphQL.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ public static void Init()
15591559
namespace System.Runtime.CompilerServices
15601560
{
15611561
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
1562-
public sealed class ModuleInitializerAttribute : Attribute
1562+
internal sealed class ModuleInitializerAttribute : Attribute
15631563
{
15641564
}
15651565
}

src/ZeroQL.Tools/Bootstrap/GraphQLGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private static MemberDeclarationSyntax GenerateNetstandardCompatibility()
281281

282282
// Create the attribute class
283283
var attributeClass = ClassDeclaration("ModuleInitializerAttribute")
284-
.AddModifiers(Token(SyntaxKind.PublicKeyword), Token(SyntaxKind.SealedKeyword))
284+
.AddModifiers(Token(SyntaxKind.InternalKeyword), Token(SyntaxKind.SealedKeyword))
285285
.AddBaseListTypes(SimpleBaseType(IdentifierName("Attribute")))
286286
.AddAttributeLists(AttributeList()
287287
.AddAttributes(Attribute(IdentifierName("AttributeUsage"))

0 commit comments

Comments
 (0)