10 references to HasProtected
Microsoft.CodeAnalysis.CSharp (10)
Compiler\ClsComplianceChecker.cs (2)
1066
bool sawProtected = type.DeclaredAccessibility.
HasProtected
();
1078
sawProtected = sawProtected || containingType.DeclaredAccessibility.
HasProtected
();
Symbols\Source\SourceConstructorSymbol.cs (1)
171
else if (ContainingType.IsSealed && this.DeclaredAccessibility.
HasProtected
() && !this.IsOverride)
Symbols\Source\SourceEventSymbol.cs (1)
579
else if (ContainingType.IsSealed && this.DeclaredAccessibility.
HasProtected
() && !this.IsOverride)
Symbols\Source\SourceFieldSymbol.cs (1)
56
if (ContainingType.IsSealed && this.DeclaredAccessibility.
HasProtected
())
Symbols\Source\SourceMemberContainerSymbol.cs (2)
263
if (containingType?.IsSealed == true && this.DeclaredAccessibility.
HasProtected
())
2446
if (member.DeclaredAccessibility.
HasProtected
())
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
892
else if (ContainingType.IsSealed && this.DeclaredAccessibility.
HasProtected
() && !this.IsOverride)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
543
else if (ContainingType.IsSealed && localAccessibility.
HasProtected
() && !this.IsOverride)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1116
else if (ContainingType.IsSealed && this.DeclaredAccessibility.
HasProtected
() && !this.IsOverride)