Skip to content

Commit a9749f3

Browse files
committed
More source generator fixes
1 parent 3849a7d commit a9749f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nuget/Sqlite_net.SourceGenerator/SQLiteFastColumnSetterGenerator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ static bool IsCandidateClass(SyntaxNode node)
8585
var classSymbol = semanticModel.GetDeclaredSymbol(classDecl);
8686
if (classSymbol is null)
8787
return null;
88+
89+
// Return null if the class is private
90+
if (classSymbol.DeclaredAccessibility == Accessibility.Private)
91+
return null;
8892

8993
var hasTableAttribute = classSymbol.GetAttributes()
9094
.Any(attr => attr.AttributeClass?.Name == "TableAttribute");

0 commit comments

Comments
 (0)