57 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_Conversions.cs (2)
119source = BindToNaturalType(source, diagnostics); 290BindToNaturalType(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)); 3552coercedArgument = BindToNaturalType(argument, diagnostics); 6524BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7485boundValue = BindToNaturalType(boundValue, valueDiagnostics); 7652boundLeft = BindToNaturalType(boundLeft, diagnostics); 7735boundLeft = BindToNaturalType(boundLeft, diagnostics); 7919return BindToNaturalType(expr, diagnostics); 8990receiver = 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); 467expression = BindToNaturalType(expression, diagnostics); 1871return BindToNaturalType(receiver, diagnostics); 2246boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2344boundExpression = 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); 3983leftOperand = BindToNaturalType(leftOperand, diagnostics); 4054rightOperand = BindToNaturalType(rightOperand, diagnostics); 4121rightOperand = BindToNaturalType(rightOperand, diagnostics); 4317trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4318falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 4367trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4368falseExpr = 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); 894BindToNaturalType(value, diagnostics); 1315initializerOpt = BindToNaturalType(initializerOpt, diagnostics, reportNoTargetType: false); 1431op2 = BindToNaturalType(op2, diagnostics); 1504op2 = BindToNaturalType(op2, diagnostics); 2658BindToNaturalType(expr, diagnostics), 2705expr = BindToNaturalType(expr, diagnostics); 3171return BindToNaturalType(argument, diagnostics); 3487expression = BindToNaturalType(expression, diagnostics); 3517expression = BindToNaturalType(expression, diagnostics); 3526expression = 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);