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