65 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (65)
Binder\Binder_Conversions.cs (4)
119
source =
BindToNaturalType
(source, diagnostics);
290
BindToNaturalType
(source, diagnostics),
1739
BindToNaturalType
(expression, diagnostics, reportNoTargetType: !targetType.IsErrorType()) :
2031
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 (13)
249
return
BindToNaturalType
(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType);
275
type is null ?
BindToNaturalType
(expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false) :
340
boundArgs.Add(
BindToNaturalType
(arg, diagnostics, reportNoTargetType));
3534
coercedArgument =
BindToNaturalType
(argument, diagnostics);
5377
BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ?
BindToNaturalType
(analyzedArguments.Arguments[0], diagnostics) : null;
6484
arguments: boundElementInitializerExpressions.SelectAsArray(e =>
BindToNaturalType
(e, diagnostics)),
6577
BindToNaturalType
(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false),
7536
boundValue =
BindToNaturalType
(boundValue, valueDiagnostics);
7703
boundLeft =
BindToNaturalType
(boundLeft, diagnostics);
7786
boundLeft =
BindToNaturalType
(boundLeft, diagnostics);
7987
return
BindToNaturalType
(expr, diagnostics);
9376
receiver =
BindToNaturalType
(receiver, diagnostics);
10319
argument:
BindToNaturalType
(argument, diagnostics),
Binder\Binder_InterpolatedString.cs (2)
686
value =
BindToNaturalType
(value, conversionDiagnostics);
866
newValue =
BindToNaturalType
(insert.Value, diagnostics);
Binder\Binder_Invocation.cs (8)
103
receiver =
BindToNaturalType
(receiver, diagnostics);
296
analyzedArguments.Arguments[i] =
BindToNaturalType
(analyzedArguments.Arguments[i], diagnostics);
469
expression =
BindToNaturalType
(expression, diagnostics);
535
var arg =>
BindToNaturalType
(arg, diagnostics)
1173
_ =
BindToNaturalType
(argument, diagnostics);
1928
return
BindToNaturalType
(receiver, diagnostics);
2348
boundArgument =
BindToNaturalType
(boundArgument, diagnostics, reportNoTargetType: false);
2448
boundExpression =
BindToNaturalType
(boundExpression, diagnostics);
Binder\Binder_Operators.cs (19)
64
left =
BindToNaturalType
(left, diagnostics);
67
right =
BindToNaturalType
(right, diagnostics);
812
left:
BindToNaturalType
(left, diagnostics),
813
right:
BindToNaturalType
(right, diagnostics),
1078
resultLeft =
BindToNaturalType
(resultLeft, diagnostics, reportNoTargetType: false);
1079
resultRight =
BindToNaturalType
(resultRight, diagnostics, reportNoTargetType: false);
1411
left =
BindToNaturalType
(left, diagnostics);
1412
right =
BindToNaturalType
(right, diagnostics);
3121
BoundExpression operand =
BindToNaturalType
(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics);
3892
BoundExpression operand =
BindToNaturalType
(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics);
3939
BoundExpression operand =
BindToNaturalType
(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics);
4136
BoundExpression operand =
BindToNaturalType
(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics);
5410
leftOperand =
BindToNaturalType
(leftOperand, diagnostics);
5481
rightOperand =
BindToNaturalType
(rightOperand, diagnostics);
5548
rightOperand =
BindToNaturalType
(rightOperand, diagnostics);
5744
trueExpr =
BindToNaturalType
(trueExpr, diagnostics, reportNoTargetType: false);
5745
falseExpr =
BindToNaturalType
(falseExpr, diagnostics, reportNoTargetType: false);
5794
trueExpr =
BindToNaturalType
(trueExpr, diagnostics, reportNoTargetType: false);
5795
falseExpr =
BindToNaturalType
(falseExpr, diagnostics, reportNoTargetType: false);
Binder\Binder_Patterns.cs (1)
669
convertedExpression =
BindToNaturalType
(expression, diagnostics);
Binder\Binder_Query.cs (1)
40
boundFromExpression =
BindToNaturalType
(boundFromExpression, diagnostics);
Binder\Binder_Statements.cs (11)
406
boundExpr =
BindToNaturalType
(boundExpr, diagnostics);
896
BindToNaturalType
(value, diagnostics);
1315
initializerOpt =
BindToNaturalType
(initializerOpt, diagnostics, reportNoTargetType: false);
1431
op2 =
BindToNaturalType
(op2, diagnostics);
1515
op2 =
BindToNaturalType
(op2, diagnostics);
2674
BindToNaturalType
(expr, diagnostics),
2721
expr =
BindToNaturalType
(expr, diagnostics);
3185
return
BindToNaturalType
(argument, diagnostics);
3503
expression =
BindToNaturalType
(expression, diagnostics);
3533
expression =
BindToNaturalType
(expression, diagnostics);
3542
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);