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