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