8 references to CheckConstraints
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Conversions.cs (2)
1066
collectionBuilderMethod.
CheckConstraints
(
2629
return !methodSymbol.
CheckConstraints
(new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, node.Location, diagnostics));
Binder\Binder_Invocation.cs (1)
998
(typeArgumentsOpt.IsDefault || ((MethodSymbol)(object)result.Member).
CheckConstraints
(new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, syntax.Location, candidateDiagnostics))))
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1046
if (!method.
CheckConstraints
(new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, location, diagnostics)))
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
617
onCompleted.
CheckConstraints
(new ConstraintsHelper.CheckConstraintsArgs(F.Compilation, F.Compilation.Conversions, includeNullability: false, F.Syntax.Location, this.Diagnostics));
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
258
startMethod.
CheckConstraints
(new ConstraintsHelper.CheckConstraintsArgs(F.Compilation, F.Compilation.Conversions, includeNullability: false, F.Syntax.Location, diagnostics));
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
176
if (!interceptor.
CheckConstraints
(new ConstraintsHelper.CheckConstraintsArgs(this._compilation, this._compilation.Conversions, includeNullability: true, attributeLocation, this._diagnostics)))
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
343
method.
CheckConstraints
(new ConstraintsHelper.CheckConstraintsArgs(_compilation, _compilation.Conversions, syntax.GetLocation(), _diagnostics));