8 overrides of IsRequired
Microsoft.CodeAnalysis.CSharp (8)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
154internal override bool IsRequired => false;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
132internal override bool IsRequired => false;
Symbols\ErrorPropertySymbol.cs (1)
80internal override bool IsRequired => false;
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
610internal override bool IsRequired
Symbols\SignatureOnlyPropertySymbol.cs (1)
90internal override bool IsRequired => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourcePropertySymbolBase.cs (1)
595internal sealed override bool IsRequired => (_modifiers & DeclarationModifiers.Required) != 0;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
69internal override bool IsRequired => false;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
164internal sealed override bool IsRequired => _underlyingProperty.IsRequired;
8 references to IsRequired
Microsoft.CodeAnalysis.CSharp (8)
FlowAnalysis\NullableWalker.cs (2)
651predicate: member => member is PropertySymbol { IsRequired: true }, 811case PropertySymbol { IsRequired: true }:
Symbols\NamedTypeSymbol.cs (1)
598if (prop.IsRequired)
Symbols\PublicModel\PropertySymbol.cs (1)
94bool IPropertySymbol.IsRequired => _underlying.IsRequired;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
915else if (overriddenMember is PropertySymbol { IsRequired: true } && overridingMember is PropertySymbol { IsRequired: false })
Symbols\SymbolExtensions.cs (1)
825internal static bool IsRequired(this Symbol symbol) => symbol is FieldSymbol { IsRequired: true } or PropertySymbol { IsRequired: true };
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
164internal sealed override bool IsRequired => _underlyingProperty.IsRequired;