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)
7653if (ConstraintsHelper.RequiresChecking(reinferredMethod))
7660if (member.ContainingType is { } extension && ConstraintsHelper.RequiresChecking(extension))
8958ConstraintsHelper.CheckMethodConstraints(
8960new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
8989var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
8991ConstraintsHelper.CheckConstraints(extension, in constraintsArgs,
9422tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, node.Syntax.Location, diagnostics: null),
11133if (ConstraintsHelper.RequiresChecking(method))
11494if (ConstraintsHelper.RequiresChecking(deconstructMethod))