52 overrides of DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (52)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
209
public override Accessibility
DeclaredAccessibility
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
119
public override Accessibility
DeclaredAccessibility
Symbols\AliasSymbol.cs (1)
192
public override Accessibility
DeclaredAccessibility
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
131
public override Accessibility
DeclaredAccessibility
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
179
public override Accessibility
DeclaredAccessibility
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
59
public sealed override Accessibility
DeclaredAccessibility
Symbols\ArrayTypeSymbol.cs (1)
418
public override Accessibility
DeclaredAccessibility
Symbols\AssemblySymbol.cs (1)
225
public sealed override Accessibility
DeclaredAccessibility
Symbols\DiscardSymbol.cs (1)
22
public override Accessibility
DeclaredAccessibility
=> Accessibility.NotApplicable;
Symbols\DynamicTypeSymbol.cs (1)
175
public override Accessibility
DeclaredAccessibility
Symbols\ErrorMethodSymbol.cs (1)
86
public override Accessibility
DeclaredAccessibility
Symbols\ErrorPropertySymbol.cs (1)
66
public override Accessibility
DeclaredAccessibility
{ get { return Accessibility.NotApplicable; } }
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
828
public override Accessibility
DeclaredAccessibility
=> Accessibility.NotApplicable;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
82
public override Accessibility
DeclaredAccessibility
=> Accessibility.NotApplicable;
Symbols\FunctionTypeSymbol.cs (1)
116
public override Accessibility
DeclaredAccessibility
=> throw ExceptionUtilities.Unreachable();
Symbols\LabelSymbol.cs (1)
96
public override Accessibility
DeclaredAccessibility
Symbols\LocalSymbol.cs (1)
178
public sealed override Accessibility
DeclaredAccessibility
Symbols\Metadata\PE\PEEventSymbol.cs (1)
261
public override Accessibility
DeclaredAccessibility
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
530
public override Accessibility
DeclaredAccessibility
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
490
public override Accessibility
DeclaredAccessibility
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
449
public override Accessibility
DeclaredAccessibility
Symbols\ModuleSymbol.cs (1)
114
public sealed override Accessibility
DeclaredAccessibility
Symbols\NamedTypeSymbol.cs (1)
717
public abstract override Accessibility
DeclaredAccessibility
{ get; }
Symbols\NamespaceSymbol.cs (1)
163
public sealed override Accessibility
DeclaredAccessibility
Symbols\ParameterSymbol.cs (1)
285
public override Accessibility
DeclaredAccessibility
Symbols\PointerTypeSymbol.cs (1)
33
public override Accessibility
DeclaredAccessibility
Symbols\RangeVariableSymbol.cs (1)
127
public override Accessibility
DeclaredAccessibility
Symbols\ReducedExtensionMethodSymbol.cs (1)
447
public override Accessibility
DeclaredAccessibility
Symbols\SignatureOnlyMethodSymbol.cs (1)
141
public override Accessibility
DeclaredAccessibility
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
78
public override Accessibility
DeclaredAccessibility
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
51
public sealed override Accessibility
DeclaredAccessibility
Symbols\Source\LambdaSymbol.cs (1)
214
public override Accessibility
DeclaredAccessibility
Symbols\Source\LocalFunctionSymbol.cs (1)
355
public override Accessibility
DeclaredAccessibility
=> ModifierUtils.EffectiveAccessibility(_declarationModifiers);
Symbols\Source\SourceEventSymbol.cs (1)
403
public sealed override Accessibility
DeclaredAccessibility
Symbols\Source\SourceMemberMethodSymbol.cs (1)
579
public override Accessibility
DeclaredAccessibility
Symbols\Source\SourcePropertySymbolBase.cs (1)
682
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
55
public override Accessibility
DeclaredAccessibility
=> Accessibility.Private;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
223
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
97
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
171
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
186
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
146
public sealed override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
40
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
59
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
344
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
64
public override Accessibility
DeclaredAccessibility
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
94
public override Accessibility
DeclaredAccessibility
Symbols\TypeParameterSymbol.cs (1)
208
public sealed override Accessibility
DeclaredAccessibility
Symbols\Wrapped\WrappedEventSymbol.cs (1)
86
public override Accessibility
DeclaredAccessibility
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
52
public override Accessibility
DeclaredAccessibility
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
109
public override Accessibility
DeclaredAccessibility
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
108
public override Accessibility
DeclaredAccessibility
78 references to DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (78)
Binder\Binder_Attributes.cs (3)
621
invalidNamedArgument |= (namedArgumentNameSymbol.
DeclaredAccessibility
!= Accessibility.Public);
645
getMethod!.
DeclaredAccessibility
!= Accessibility.Public ||
646
setMethod!.
DeclaredAccessibility
!= Accessibility.Public;
Binder\Binder_Conversions.cs (3)
603
DeclaredAccessibility
: Accessibility.Public,
635
DeclaredAccessibility
: Accessibility.Public,
668
DeclaredAccessibility
: Accessibility.Public,
Binder\Binder_Expressions.cs (1)
8733
switch (symbol.
DeclaredAccessibility
)
Binder\Binder_Lookup.cs (1)
1654
if (s.
DeclaredAccessibility
== Accessibility.Private)
Binder\Binder_Operators.cs (1)
1274
if (op.ParameterCount == 1 && op.
DeclaredAccessibility
== Accessibility.Public)
Binder\ForEachLoopBinder.cs (3)
1445
if (result.IsStatic || result.
DeclaredAccessibility
!= Accessibility.Public)
1649
if (lookupSymbol.IsStatic || lookupSymbol.
DeclaredAccessibility
!= Accessibility.Public || lookupSymbol.Kind != SymbolKind.Property)
1682
moveNextMethodCandidate.Method.IsStatic || moveNextMethodCandidate.Method.
DeclaredAccessibility
!= Accessibility.Public ||
Binder\LockBinder.cs (1)
121
DeclaredAccessibility
: Accessibility.Public,
Binder\PatternExplainer.cs (1)
653
if (declaredMember is FieldSymbol { IsConst: true, IsStatic: true,
DeclaredAccessibility
: Accessibility.Public } field &&
Binder\Semantics\AccessCheck.cs (3)
90
switch (symbol.
DeclaredAccessibility
)
103
throw ExceptionUtilities.UnexpectedValue(symbol.
DeclaredAccessibility
);
212
return IsMemberAccessible(symbol.ContainingType, symbol.
DeclaredAccessibility
, within, throughTypeOpt, out failedThroughTypeCheck, compilation, ref useSiteInfo);
Compiler\ClsComplianceChecker.cs (2)
1235
switch (symbol.
DeclaredAccessibility
)
1249
throw ExceptionUtilities.UnexpectedValue(symbol.
DeclaredAccessibility
);
Compiler\DocumentationCommentCompiler.cs (1)
667
switch (symbol.
DeclaredAccessibility
)
Compiler\MethodBodySynthesizer.cs (1)
603
Accessibility accessibility = baseTypeMethod.
DeclaredAccessibility
;
Emitter\Model\AttributeDataAdapter.cs (1)
185
if (member.
DeclaredAccessibility
== Accessibility.Public)
Emitter\Model\MethodSymbolAdapter.cs (1)
597
Accessibility accessibility = this.
DeclaredAccessibility
;
Emitter\Model\PEModuleBuilder.cs (1)
586
if (symbol.
DeclaredAccessibility
!= Accessibility.Public)
Emitter\NoPia\EmbeddedTypesManager.cs (1)
458
(containerKind == TypeKind.Struct && (field.AdaptedFieldSymbol.IsStatic || field.AdaptedFieldSymbol.
DeclaredAccessibility
!= Accessibility.Public)))
FlowAnalysis\EmptyStructTypeCache.cs (1)
256
switch (symbol.
DeclaredAccessibility
)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (2)
484
if ((method.
DeclaredAccessibility
== Accessibility.Public) &&
512
if ((property.
DeclaredAccessibility
== Accessibility.Public) &&
Symbols\Attributes\AttributeData.cs (2)
562
property.
DeclaredAccessibility
== Accessibility.Public && property.GetMemberArity() == 0 &&
563
(object)property.SetMethod != null && property.SetMethod.
DeclaredAccessibility
== Accessibility.Public)
Symbols\Compilation_WellKnownMembers.cs (1)
296
!(member.
DeclaredAccessibility
== Accessibility.Public || (accessWithinOpt is object && Symbol.IsSymbolAccessible(member, accessWithinOpt))))
Symbols\ConstraintsHelper.cs (1)
1496
if (constructor.
DeclaredAccessibility
!= Accessibility.Public)
Symbols\MemberSymbolExtensions.cs (1)
146
return accessor.IsImplementable() && accessor.
DeclaredAccessibility
!= Accessibility.Public;
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
491
Accessibility overriddenAccessibility = getMethod.
DeclaredAccessibility
;
503
Accessibility overriddenAccessibility = setMethod.
DeclaredAccessibility
;
Symbols\NativeIntegerTypeSymbol.cs (1)
83
if (underlyingMember.
DeclaredAccessibility
!= Accessibility.Public)
Symbols\PropertyOrEventSymbolExtensions.cs (4)
64
return ((object)accessor2 == null) ? Accessibility.NotApplicable : accessor2.
DeclaredAccessibility
;
68
return accessor1.
DeclaredAccessibility
;
71
return GetDeclaredAccessibilityFromAccessors(accessor1.
DeclaredAccessibility
, accessor2.
DeclaredAccessibility
);
Symbols\PublicModel\Symbol.cs (1)
129
return UnderlyingSymbol.
DeclaredAccessibility
;
Symbols\ReducedExtensionMethodSymbol.cs (1)
449
get { return _reducedFrom.
DeclaredAccessibility
; }
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
76
return this.AssociatedSymbol.
DeclaredAccessibility
;
Symbols\Source\SourceMemberContainerSymbol.cs (12)
727
Accessibility fieldDeclaredAccessibility = field.
DeclaredAccessibility
;
897
switch (container.
DeclaredAccessibility
)
2446
if (member.
DeclaredAccessibility
.HasProtected())
4112
if (m.
DeclaredAccessibility
!= Accessibility.Public)
4311
if (deconstruct.
DeclaredAccessibility
!= Accessibility.Public)
4365
if (!this.IsSealed && (constructor.
DeclaredAccessibility
!= Accessibility.Public && constructor.
DeclaredAccessibility
!= Accessibility.Protected))
4410
if (printMembersMethod.
DeclaredAccessibility
!= Accessibility.Private)
4415
else if (printMembersMethod.
DeclaredAccessibility
!= Accessibility.Protected)
4672
if (equalityContract.
DeclaredAccessibility
!= Accessibility.Private)
4677
else if (equalityContract.
DeclaredAccessibility
!= Accessibility.Protected)
4738
if (thisEquals.
DeclaredAccessibility
!= Accessibility.Public)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
905
var accessibility = SyntaxFacts.GetText(overriddenMember.
DeclaredAccessibility
);
1658
switch (hidingMember.
DeclaredAccessibility
)
1700
throw ExceptionUtilities.UnexpectedValue(hidingMember.
DeclaredAccessibility
);
1710
overridden.
DeclaredAccessibility
== Accessibility.ProtectedOrInternal)
1712
return overriding.
DeclaredAccessibility
== Accessibility.Protected;
1716
return overridden.
DeclaredAccessibility
== overriding.
DeclaredAccessibility
;
Symbols\Symbol.cs (3)
252
switch (
DeclaredAccessibility
)
306
throw ExceptionUtilities.UnexpectedValue(
DeclaredAccessibility
);
1790
return this.
DeclaredAccessibility
;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
162
DeclaredAccessibility
: Accessibility.Public,
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
326
return m.
DeclaredAccessibility
== Accessibility.Public && !m.IsStatic;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
68
Accessibility overriddenAccessibility = _overriddenAccessor.
DeclaredAccessibility
;
Symbols\TypeSymbol.cs (4)
832
bool canBeImplementedImplicitlyInCSharp9 = interfaceMember.
DeclaredAccessibility
== Accessibility.Public && !interfaceMember.IsEventOrPropertyWithImplementableNonPublicAccessor();
1726
if (member.
DeclaredAccessibility
!= Accessibility.Public || member == implicitImpl)
1991
else if (closestMismatch.
DeclaredAccessibility
!= Accessibility.Public)
2235
if (candidateMember.
DeclaredAccessibility
!= Accessibility.Public || candidateMember.IsStatic != interfaceMember.IsStatic)
Symbols\TypeSymbolExtensions.cs (2)
1003
Accessibility acc1 = s1.
DeclaredAccessibility
;
1012
Accessibility acc2 = s2.
DeclaredAccessibility
;
Symbols\Wrapped\WrappedEventSymbol.cs (1)
90
return _underlyingEvent.
DeclaredAccessibility
;
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
56
return _underlyingField.
DeclaredAccessibility
;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
113
return UnderlyingMethod.
DeclaredAccessibility
;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
112
return _underlyingProperty.
DeclaredAccessibility
;