Binder\Binder_Expressions.cs (4)
11464if (!ConstraintsHelper.RequiresChecking(method))
11472bool constraintsSatisfied = ConstraintsHelper.CheckMethodConstraints(
11474new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null),
11586new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
FlowAnalysis\NullableWalker.cs (9)
7594if (ConstraintsHelper.RequiresChecking(reinferredMethod))
7601if (member.ContainingType is { } extension && ConstraintsHelper.RequiresChecking(extension))
8908ConstraintsHelper.CheckMethodConstraints(
8910new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
8939var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
8941ConstraintsHelper.CheckConstraints(extension, in constraintsArgs,
9372tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, node.Syntax.Location, diagnostics: null),
11064if (ConstraintsHelper.RequiresChecking(method))
11426if (ConstraintsHelper.RequiresChecking(deconstructMethod))