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