Binder\Binder_Expressions.cs (4)
12164if (!ConstraintsHelper.RequiresChecking(method))
12172bool constraintsSatisfied = ConstraintsHelper.CheckMethodConstraints(
12174new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null),
12286new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
FlowAnalysis\NullableWalker.cs (9)
7744if (ConstraintsHelper.RequiresChecking(reinferredMethod))
7751if (member.ContainingType is { } extension && ConstraintsHelper.RequiresChecking(extension))
9047ConstraintsHelper.CheckMethodConstraints(
9049new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
9078var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
9080ConstraintsHelper.CheckConstraints(extension, in constraintsArgs,
9511tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, node.Syntax.Location, diagnostics: null),
11222if (ConstraintsHelper.RequiresChecking(method))
11590if (ConstraintsHelper.RequiresChecking(deconstructMethod))