65 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (65)
Binder\Binder_Conversions.cs (4)
119source = BindToNaturalType(source, diagnostics); 290BindToNaturalType(source, diagnostics), 1721BindToNaturalType(expression, diagnostics, reportNoTargetType: !targetType.IsErrorType()) : 2013BindToNaturalType(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)
250return BindToNaturalType(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType); 276type is null ? BindToNaturalType(expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false) : 341boundArgs.Add(BindToNaturalType(arg, diagnostics, reportNoTargetType)); 3557coercedArgument = BindToNaturalType(argument, diagnostics); 5414BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ? BindToNaturalType(analyzedArguments.Arguments[0], diagnostics) : null; 6521arguments: boundElementInitializerExpressions.SelectAsArray(e => BindToNaturalType(e, diagnostics)), 6614BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7574boundValue = BindToNaturalType(boundValue, valueDiagnostics); 7741boundLeft = BindToNaturalType(boundLeft, diagnostics); 7824boundLeft = BindToNaturalType(boundLeft, diagnostics); 8025return BindToNaturalType(expr, diagnostics); 9360receiver = BindToNaturalType(receiver, diagnostics); 10303argument: BindToNaturalType(argument, diagnostics),
Binder\Binder_InterpolatedString.cs (2)
686value = BindToNaturalType(value, conversionDiagnostics); 866newValue = BindToNaturalType(insert.Value, diagnostics);
Binder\Binder_Invocation.cs (8)
104receiver = BindToNaturalType(receiver, diagnostics); 303analyzedArguments.Arguments[i] = BindToNaturalType(analyzedArguments.Arguments[i], diagnostics); 476expression = BindToNaturalType(expression, diagnostics); 542var arg => BindToNaturalType(arg, diagnostics) 1195_ = BindToNaturalType(argument, diagnostics); 2004return BindToNaturalType(receiver, diagnostics); 2424boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2524boundExpression = BindToNaturalType(boundExpression, diagnostics);
Binder\Binder_Operators.cs (19)
64left = BindToNaturalType(left, diagnostics); 67right = BindToNaturalType(right, diagnostics); 819left: BindToNaturalType(left, diagnostics), 820right: BindToNaturalType(right, diagnostics), 1085resultLeft = BindToNaturalType(resultLeft, diagnostics, reportNoTargetType: false); 1086resultRight = BindToNaturalType(resultRight, diagnostics, reportNoTargetType: false); 1418left = BindToNaturalType(left, diagnostics); 1419right = BindToNaturalType(right, diagnostics); 3143BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 3924BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 3971BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 4168BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 5442leftOperand = BindToNaturalType(leftOperand, diagnostics); 5513rightOperand = BindToNaturalType(rightOperand, diagnostics); 5580rightOperand = BindToNaturalType(rightOperand, diagnostics); 5776trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 5777falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 5826trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 5827falseExpr = 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); 2697BindToNaturalType(expr, diagnostics), 2744expr = BindToNaturalType(expr, diagnostics); 3208return BindToNaturalType(argument, diagnostics); 3526expression = BindToNaturalType(expression, diagnostics); 3556expression = BindToNaturalType(expression, diagnostics); 3565expression = 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);