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)
7667if (ConstraintsHelper.RequiresChecking(reinferredMethod))
7674if (member.ContainingType is { } extension && ConstraintsHelper.RequiresChecking(extension))
8972ConstraintsHelper.CheckMethodConstraints(
8974new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
9003var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
9005ConstraintsHelper.CheckConstraints(extension, in constraintsArgs,
9436tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, node.Syntax.Location, diagnostics: null),
11143if (ConstraintsHelper.RequiresChecking(method))
11504if (ConstraintsHelper.RequiresChecking(deconstructMethod))