11 references to ShouldCheckRequiredMembers
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (1)
6084
if (!constructor.
ShouldCheckRequiredMembers
() ||
FlowAnalysis\NullableWalker.cs (4)
644
bool constructorEnforcesRequiredMembers = method.
ShouldCheckRequiredMembers
();
673
var chainedConstructorEnforcesRequiredMembers = GetBaseOrThisInitializer()?.
ShouldCheckRequiredMembers
() ?? false;
757
if ((symbol.IsRequired() || membersWithStateEnforcedByRequiredMembers.Contains(symbol.Name)) && constructor.
ShouldCheckRequiredMembers
())
877
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)
2652
if (member is not MethodSymbol method || !method.
ShouldCheckRequiredMembers
())
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1801
|| !method.
ShouldCheckRequiredMembers
()))