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)
7725if (ConstraintsHelper.RequiresChecking(reinferredMethod))
7732if (member.ContainingType is { } extension && ConstraintsHelper.RequiresChecking(extension))
9030ConstraintsHelper.CheckMethodConstraints(
9032new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
9061var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
9063ConstraintsHelper.CheckConstraints(extension, in constraintsArgs,
9494tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, node.Syntax.Location, diagnostics: null),
11205if (ConstraintsHelper.RequiresChecking(method))
11573if (ConstraintsHelper.RequiresChecking(deconstructMethod))