62 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder_Conversions.cs (2)
116
source =
BindToNaturalType
(source, diagnostics);
260
BindToNaturalType
(source, diagnostics),
Binder\Binder_Deconstruct.cs (3)
102
boundRight =
BindToNaturalType
(boundRight, diagnostics);
591
return (BoundTupleExpression)
BindToNaturalType
(new BoundTupleLiteral(syntax, arguments, tupleNames, inferredPositions, type), diagnostics);
630
receiver =
BindToNaturalType
(receiver, diagnostics);
Binder\Binder_Expressions.cs (12)
241
return
BindToNaturalType
(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType);
267
type is null ?
BindToNaturalType
(expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false) :
332
boundArgs.Add(
BindToNaturalType
(arg, diagnostics, reportNoTargetType));
3215
arguments[arg] =
BindToNaturalType
(argument, diagnostics);
4524
BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ?
BindToNaturalType
(analyzedArguments.Arguments[0], diagnostics) : null;
5512
arguments: boundElementInitializerExpressions.SelectAsArray(e =>
BindToNaturalType
(e, diagnostics)),
6418
boundValue =
BindToNaturalType
(boundValue, valueDiagnostics);
6583
boundLeft =
BindToNaturalType
(boundLeft, diagnostics);
6666
boundLeft =
BindToNaturalType
(boundLeft, diagnostics);
6850
return
BindToNaturalType
(expr, diagnostics);
7888
receiver =
BindToNaturalType
(receiver, diagnostics);
8569
argument:
BindToNaturalType
(argument, diagnostics),
Binder\Binder_InterpolatedString.cs (2)
540
value =
BindToNaturalType
(value, conversionDiagnostics);
698
newValue =
BindToNaturalType
(insert.Value, diagnostics);
Binder\Binder_Invocation.cs (8)
94
receiver =
BindToNaturalType
(receiver, diagnostics);
223
analyzedArguments.Arguments[i] =
BindToNaturalType
(analyzedArguments.Arguments[i], diagnostics);
379
expression =
BindToNaturalType
(expression, diagnostics);
435
var arg =>
BindToNaturalType
(arg, diagnostics)
984
_ =
BindToNaturalType
(argument, diagnostics);
1549
return
BindToNaturalType
(receiver, diagnostics);
1910
boundArgument =
BindToNaturalType
(boundArgument, diagnostics, reportNoTargetType: false);
2008
boundExpression =
BindToNaturalType
(boundExpression, diagnostics);
Binder\Binder_Operators.cs (19)
61
left =
BindToNaturalType
(left, diagnostics);
62
right =
BindToNaturalType
(right, diagnostics);
413
left:
BindToNaturalType
(left, diagnostics),
414
right:
BindToNaturalType
(right, diagnostics),
648
resultLeft =
BindToNaturalType
(resultLeft, diagnostics, reportNoTargetType: false);
649
resultRight =
BindToNaturalType
(resultRight, diagnostics, reportNoTargetType: false);
927
left =
BindToNaturalType
(left, diagnostics);
928
right =
BindToNaturalType
(right, diagnostics);
2233
BoundExpression operand =
BindToNaturalType
(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics);
2434
BoundExpression operand =
BindToNaturalType
(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics);
2481
BoundExpression operand =
BindToNaturalType
(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics);
2666
BoundExpression operand =
BindToNaturalType
(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics);
3906
leftOperand =
BindToNaturalType
(leftOperand, diagnostics);
3977
rightOperand =
BindToNaturalType
(rightOperand, diagnostics);
4044
rightOperand =
BindToNaturalType
(rightOperand, diagnostics);
4241
trueExpr =
BindToNaturalType
(trueExpr, diagnostics, reportNoTargetType: false);
4242
falseExpr =
BindToNaturalType
(falseExpr, diagnostics, reportNoTargetType: false);
4295
trueExpr =
BindToNaturalType
(trueExpr, diagnostics, reportNoTargetType: false);
4296
falseExpr =
BindToNaturalType
(falseExpr, diagnostics, reportNoTargetType: false);
Binder\Binder_Patterns.cs (1)
659
convertedExpression =
BindToNaturalType
(expression, diagnostics);
Binder\Binder_Query.cs (1)
40
boundFromExpression =
BindToNaturalType
(boundFromExpression, diagnostics);
Binder\Binder_Statements.cs (11)
403
boundExpr =
BindToNaturalType
(boundExpr, diagnostics);
897
BindToNaturalType
(value, diagnostics);
1324
initializerOpt =
BindToNaturalType
(initializerOpt, diagnostics, reportNoTargetType: false);
1440
op2 =
BindToNaturalType
(op2, diagnostics);
1511
op2 =
BindToNaturalType
(op2, diagnostics);
2557
BindToNaturalType
(expr, diagnostics),
2604
expr =
BindToNaturalType
(expr, diagnostics);
3070
return
BindToNaturalType
(argument, diagnostics);
3386
expression =
BindToNaturalType
(expression, diagnostics);
3416
expression =
BindToNaturalType
(expression, diagnostics);
3425
expression =
BindToNaturalType
(expression, diagnostics);
Binder\Binder_TupleOperators.cs (2)
51
return
BindToNaturalType
(expr, diagnostics, reportNoTargetType: false);
69
return
BindToNaturalType
(expr, diagnostics, reportNoTargetType: false);
Binder\LockOrUsingBinder.cs (1)
91
boundExpression = originalBinder.
BindToNaturalType
(boundExpression, expressionDiagnostics);