Base:
property
DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp.Symbol.DeclaredAccessibility
13 overrides of DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (13)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
147
public sealed override Accessibility
DeclaredAccessibility
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
200
public sealed override Accessibility
DeclaredAccessibility
Symbols\ErrorTypeSymbol.cs (1)
374
public sealed override Accessibility
DeclaredAccessibility
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
635
public override Accessibility
DeclaredAccessibility
Symbols\Source\SourceMemberContainerSymbol.cs (1)
880
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
132
public override Accessibility
DeclaredAccessibility
=> Accessibility.Private;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
809
public override Accessibility
DeclaredAccessibility
=> Accessibility.Internal;
Symbols\Synthesized\SynthesizedContainer.cs (1)
150
public override Accessibility
DeclaredAccessibility
=> Accessibility.Private;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
72
public override Accessibility
DeclaredAccessibility
=> Accessibility.Internal;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
91
public override Accessibility
DeclaredAccessibility
=> Accessibility.Internal;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
57
public override Accessibility
DeclaredAccessibility
=> Accessibility.Internal;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
50
public override Accessibility
DeclaredAccessibility
=> Accessibility.Internal;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
103
public override Accessibility
DeclaredAccessibility
14 references to DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (14)
Binder\LockBinder.cs (1)
87
if (scopeType is not NamedTypeSymbol { Name: WellKnownMemberNames.LockScopeTypeName, Arity: 0, IsValueType: true, IsRefLikeType: true,
DeclaredAccessibility
: Accessibility.Public } ||
Binder\Semantics\AccessCheck.cs (2)
248
? IsNonNestedTypeAccessible(type.ContainingAssembly, type.
DeclaredAccessibility
, within)
249
: IsMemberAccessible(containingType, type.
DeclaredAccessibility
, within, null, out unused, compilation, ref useSiteInfo, basesBeingResolved);
Compiler\ClsComplianceChecker.cs (2)
1066
bool sawProtected = type.
DeclaredAccessibility
.HasProtected();
1078
sawProtected = sawProtected || containingType.
DeclaredAccessibility
.HasProtected();
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (3)
204
builderType = ValidateBuilderType(F, builderArgument, returnType.
DeclaredAccessibility
, isGeneric: false, useMethodLevelBuilder);
285
builderType = ValidateBuilderType(F, builderArgument, returnType.
DeclaredAccessibility
, isGeneric: true, useMethodLevelBuilder);
346
(forMethodLevelBuilder || builderType.
DeclaredAccessibility
== desiredAccessibility))
Symbols\AssemblySymbol.cs (1)
1037
return result.
DeclaredAccessibility
== Accessibility.Public || IsSymbolAccessible(result, this);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
219
else if (specifierType.
DeclaredAccessibility
!= Accessibility.Public)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
378
candidate.
DeclaredAccessibility
!= Accessibility.Public)
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
62
if (result is null || result.
DeclaredAccessibility
!= Accessibility.Public)
Symbols\Source\SourceAssemblySymbol.cs (1)
1895
return !obj.IsErrorType() && obj.
DeclaredAccessibility
== Accessibility.Public;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
107
return _underlyingType.
DeclaredAccessibility
;