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