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)
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); 9366receiver = 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); 468expression = BindToNaturalType(expression, diagnostics); 1926return BindToNaturalType(receiver, diagnostics); 2338boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2439boundExpression = 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); 2416BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 2860BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 2907BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 3104BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 4378leftOperand = BindToNaturalType(leftOperand, diagnostics); 4449rightOperand = BindToNaturalType(rightOperand, diagnostics); 4516rightOperand = BindToNaturalType(rightOperand, diagnostics); 4712trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4713falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 4762trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 4763falseExpr = 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);