Binder\Binder_Expressions.cs (4)
11463if (!ConstraintsHelper.RequiresChecking(method))
11471bool constraintsSatisfied = ConstraintsHelper.CheckMethodConstraints(
11473new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null),
11585new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
FlowAnalysis\NullableWalker.cs (9)
7640if (ConstraintsHelper.RequiresChecking(reinferredMethod))
7647if (member.ContainingType is { } extension && ConstraintsHelper.RequiresChecking(extension))
8945ConstraintsHelper.CheckMethodConstraints(
8947new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
8976var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
8978ConstraintsHelper.CheckConstraints(extension, in constraintsArgs,
9409tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, node.Syntax.Location, diagnostics: null),
11114if (ConstraintsHelper.RequiresChecking(method))
11476if (ConstraintsHelper.RequiresChecking(deconstructMethod))