Base:
property
DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp.Symbol.DeclaredAccessibility
2 overrides of DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
72
public override Accessibility
DeclaredAccessibility
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
290
public sealed override Accessibility
DeclaredAccessibility
23 references to DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Source\SourceConstructorSymbol.cs (1)
151
else if (ContainingType.IsSealed && this.
DeclaredAccessibility
.HasProtected() && !this.IsOverride)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
243
if (this.
DeclaredAccessibility
<= Accessibility.Private || MethodKind == MethodKind.ExplicitInterfaceImplementation)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
698
|| definition.
DeclaredAccessibility
!= implementation.
DeclaredAccessibility
)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (2)
347
else if (this.
DeclaredAccessibility
== Accessibility.Private && (IsVirtual || (IsAbstract && !isExplicitInterfaceImplementationInInterface) || IsOverride))
416
else if (ContainingType.IsSealed && this.
DeclaredAccessibility
.HasProtected() && !this.IsOverride)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
79
else if (this.
DeclaredAccessibility
!= Accessibility.Public || !this.IsStatic)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\RecordStructTests.cs (2)
4309
Assert.Equal(Accessibility.Public, recordEquals.
DeclaredAccessibility
);
4318
Assert.Equal(Accessibility.Public, objectEquals.
DeclaredAccessibility
);
Semantics\RecordTests.cs (7)
9987
Assert.Equal(Accessibility.Protected, b1Ctor.
DeclaredAccessibility
);
18091
Assert.Equal(Accessibility.Public, recordEquals.
DeclaredAccessibility
);
18200
Assert.Equal(Accessibility.Public, recordEquals.
DeclaredAccessibility
);
18464
Assert.Equal(Accessibility.Public, recordEquals.
DeclaredAccessibility
);
18624
Assert.Equal(Accessibility.Public, recordEquals.
DeclaredAccessibility
);
18663
Assert.Equal(Accessibility.Public, recordEquals.
DeclaredAccessibility
);
18699
Assert.Equal(Accessibility.Public, recordEquals.
DeclaredAccessibility
);
Semantics\TopLevelStatementsTests.cs (7)
9046
Assert.Equal(Accessibility.Private, entryPoint.
DeclaredAccessibility
);
9101
Assert.Equal(Accessibility.Private, entryPoint.
DeclaredAccessibility
);
9143
Assert.Equal(Accessibility.Private, entryPoint.
DeclaredAccessibility
);
9165
Assert.Equal(Accessibility.Private, entryPoint.
DeclaredAccessibility
);
9187
Assert.Equal(Accessibility.Private, entryPoint.
DeclaredAccessibility
);
9216
Assert.Equal(Accessibility.Private, entryPoint.
DeclaredAccessibility
);
9310
Assert.Equal(Accessibility.Private, entryPoint.
DeclaredAccessibility
);