Skip to content

Commit f49e6c9

Browse files
committed
Do not check declaration access for explicitly generated declarations.
1 parent 568b68b commit f49e6c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Generator/Passes/CheckIgnoredDecls.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ public class CheckIgnoredDeclsPass : TranslationUnitPass
1313

1414
public bool CheckDeclarationAccess(Declaration decl)
1515
{
16+
if (decl.IsExplicitlyGenerated)
17+
return true;
18+
1619
switch (decl.Access)
1720
{
1821
case AccessSpecifier.Public:

0 commit comments

Comments
 (0)