57 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_Conversions.cs (2)
118source = BindToNaturalType(source, diagnostics); 294BindToNaturalType(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 (10)
244return BindToNaturalType(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType); 270type is null ? BindToNaturalType(expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false) : 335boundArgs.Add(BindToNaturalType(arg, diagnostics, reportNoTargetType)); 3511coercedArgument = BindToNaturalType(argument, diagnostics); 6425BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7386boundValue = BindToNaturalType(boundValue, valueDiagnostics); 7553boundLeft = BindToNaturalType(boundLeft, diagnostics); 7636boundLeft = BindToNaturalType(boundLeft, diagnostics); 7820return BindToNaturalType(expr, diagnostics); 8891receiver = BindToNaturalType(receiver, diagnostics);
Binder\Binder_InterpolatedString.cs (2)
548value = BindToNaturalType(value, conversionDiagnostics); 728newValue = BindToNaturalType(insert.Value, diagnostics);
Binder\Binder_Invocation.cs (5)
103receiver = BindToNaturalType(receiver, diagnostics); 467expression = BindToNaturalType(expression, diagnostics); 1923return BindToNaturalType(receiver, diagnostics); 2298boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2396boundExpression = BindToNaturalType(boundExpression, diagnostics);
Binder\Binder_Operators.cs (19)
61left = BindToNaturalType(left, diagnostics); 62right = BindToNaturalType(right, diagnostics); 413left: BindToNaturalType(left, diagnostics), 414right: BindToNaturalType(right, diagnostics), 678resultLeft = BindToNaturalType(resultLeft, diagnostics, reportNoTargetType: false); 679resultRight = BindToNaturalType(resultRight, diagnostics, reportNoTargetType: false); 958left = BindToNaturalType(left, diagnostics); 959right = BindToNaturalType(right, diagnostics); 2264BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 2465BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 2512BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 2709BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 3981leftOperand = BindToNaturalType(leftOperand, diagnostics); 4052rightOperand = BindToNaturalType(rightOperand, diagnostics); 4119rightOperand = BindToNaturalType(rightOperand, diagnostics); 4315trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4316falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 4365trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4366falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false);
Binder\Binder_Patterns.cs (1)
668convertedExpression = BindToNaturalType(expression, diagnostics);
Binder\Binder_Query.cs (1)
40boundFromExpression = BindToNaturalType(boundFromExpression, diagnostics);
Binder\Binder_Statements.cs (11)
405boundExpr = BindToNaturalType(boundExpr, diagnostics); 893BindToNaturalType(value, diagnostics); 1314initializerOpt = BindToNaturalType(initializerOpt, diagnostics, reportNoTargetType: false); 1430op2 = BindToNaturalType(op2, diagnostics); 1501op2 = BindToNaturalType(op2, diagnostics); 2562BindToNaturalType(expr, diagnostics), 2609expr = BindToNaturalType(expr, diagnostics); 3075return BindToNaturalType(argument, diagnostics); 3391expression = BindToNaturalType(expression, diagnostics); 3421expression = BindToNaturalType(expression, diagnostics); 3430expression = 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);