11 references to ShouldCheckRequiredMembers
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (1)
6084
if (!constructor.
ShouldCheckRequiredMembers
() ||
FlowAnalysis\NullableWalker.cs (4)
643
bool constructorEnforcesRequiredMembers = method.
ShouldCheckRequiredMembers
();
672
var chainedConstructorEnforcesRequiredMembers = GetBaseOrThisInitializer()?.
ShouldCheckRequiredMembers
() ?? false;
756
if ((symbol.IsRequired() || membersWithStateEnforcedByRequiredMembers.Contains(symbol.Name)) && constructor.
ShouldCheckRequiredMembers
())
876
includeBaseRequiredMembers = baseOrThisInitializer?.
ShouldCheckRequiredMembers
() ?? true;
Symbols\ConstraintsHelper.cs (1)
1500
else if (hasAnyRequiredMembers && constructor.
ShouldCheckRequiredMembers
())
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1012
bool checkForRequiredMembers = this.
ShouldCheckRequiredMembers
() && this.ContainingType.HasAnyRequiredMembers;
1453
if (diagnosticInfo == null && this.
ShouldCheckRequiredMembers
() && ContainingType.HasRequiredMembersError)
Symbols\MethodSymbol.cs (1)
1271
if (methodToAttribute.
ShouldCheckRequiredMembers
() && methodToAttribute.ContainingType.HasAnyRequiredMembers)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2638
if (member is not MethodSymbol method || !method.
ShouldCheckRequiredMembers
())
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1801
|| !method.
ShouldCheckRequiredMembers
()))