We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675e6ac commit 1bea5a6Copy full SHA for 1bea5a6
src/Framework/AspNetCoreAnalyzers/src/SourceGenerators/PublicTopLevelProgramGenerator.cs
@@ -25,7 +25,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
25
// If the discovered `Program` type is not a class then its not
26
// generated and has been defined in source, so we can skip it
27
// If the program class is already public, we don't need to generate anything.
28
- DeclaredAccessibility: Accessibility.Public,
+ DeclaredAccessibility: not Accessibility.Public,
29
TypeKind: TypeKind.Class,
30
// If there are multiple partial declarations, then do nothing since we don't want
31
// to trample on visibility explicitly set by the user
0 commit comments