Binder\Binder_Expressions.cs (4)
11433if (!ConstraintsHelper.RequiresChecking(method))
11441bool constraintsSatisfied = ConstraintsHelper.CheckMethodConstraints(
11443new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null),
11555new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
FlowAnalysis\NullableWalker.cs (9)
7520if (ConstraintsHelper.RequiresChecking(reinferredMethod))
7527if (member.ContainingType is { } extension && ConstraintsHelper.RequiresChecking(extension))
8784ConstraintsHelper.CheckMethodConstraints(
8786new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
8815var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
8817ConstraintsHelper.CheckConstraints(extension, in constraintsArgs,
9248tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, node.Syntax.Location, diagnostics: null),
10665if (ConstraintsHelper.RequiresChecking(method))
11027if (ConstraintsHelper.RequiresChecking(deconstructMethod))