59 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (59)
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 (10)
249return BindToNaturalType(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType); 275type is null ? BindToNaturalType(expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false) : 340boundArgs.Add(BindToNaturalType(arg, diagnostics, reportNoTargetType)); 3532coercedArgument = BindToNaturalType(argument, diagnostics); 6575BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7534boundValue = BindToNaturalType(boundValue, valueDiagnostics); 7701boundLeft = BindToNaturalType(boundLeft, diagnostics); 7784boundLeft = BindToNaturalType(boundLeft, diagnostics); 7985return BindToNaturalType(expr, diagnostics); 9367receiver = BindToNaturalType(receiver, diagnostics);
Binder\Binder_InterpolatedString.cs (2)
686value = BindToNaturalType(value, conversionDiagnostics); 866newValue = BindToNaturalType(insert.Value, diagnostics);
Binder\Binder_Invocation.cs (5)
103receiver = BindToNaturalType(receiver, diagnostics); 469expression = BindToNaturalType(expression, 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); 558left: BindToNaturalType(left, diagnostics), 559right: BindToNaturalType(right, diagnostics), 823resultLeft = BindToNaturalType(resultLeft, diagnostics, reportNoTargetType: false); 824resultRight = BindToNaturalType(resultRight, diagnostics, reportNoTargetType: false); 1103left = BindToNaturalType(left, diagnostics); 1104right = BindToNaturalType(right, diagnostics); 2462BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 2906BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 2953BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 3150BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 4424leftOperand = BindToNaturalType(leftOperand, diagnostics); 4495rightOperand = BindToNaturalType(rightOperand, diagnostics); 4562rightOperand = BindToNaturalType(rightOperand, diagnostics); 4758trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4759falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 4808trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4809falseExpr = 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)
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); 3187return BindToNaturalType(argument, diagnostics); 3505expression = BindToNaturalType(expression, diagnostics); 3535expression = BindToNaturalType(expression, diagnostics); 3544expression = 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);